Record Class ClientAddressResolver.Resolution
java.lang.Object
java.lang.Record
com.iizix.server.geo.ip2location.ClientAddressResolver.Resolution
- Record Components:
address- The address, null only with sourceClientAddressResolver.Source.NONE.source- The source.
- Enclosing class:
ClientAddressResolver
public static record ClientAddressResolver.Resolution(InetAddress address, ClientAddressResolver.Source source) extends Record
The resolved client address and its source.
- Author:
- Christopher Mindus
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ClientAddressResolver.ResolutionThe "no address" resolution.Constructor Summary
ConstructorsConstructorDescriptionResolution(InetAddress address, ClientAddressResolver.Source source) Creates an instance of aResolutionrecord class.Method Summary
Modifier and TypeMethodDescriptionaddress()Returns the value of theaddressrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.source()Returns the value of thesourcerecord component.final StringtoString()Returns a string representation of this record class.
Field Details
NONE
The "no address" resolution.
Constructor Details
Method Details
toString
hashCode
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).address
source