Package sk.iway.iwcm.users.devices
Record Class AdminLoginLocation.Input
java.lang.Object
java.lang.Record
sk.iway.iwcm.users.devices.AdminLoginLocation.Input
- Record Components:
city- city name returned by the IP lookup provider; validated before storagecountryCode- two-letter country code; trimmed and converted to uppercase during validation
- Enclosing class:
- AdminLoginLocation
Contains the untrusted location fields submitted by the browser, without target identifiers.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncity()Returns the value of thecityrecord component.Returns the value of thecountryCoderecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Input
Creates an instance of aInputrecord class.- Parameters:
city- the value for thecityrecord componentcountryCode- the value for thecountryCoderecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
city
Returns the value of thecityrecord component.- Returns:
- the value of the
cityrecord component
-
countryCode
Returns the value of thecountryCoderecord component.- Returns:
- the value of the
countryCoderecord component
-