Record Class GeoIpData
java.lang.Object
java.lang.Record
ecmwf.common.database.GeoIpData
- All Implemented Interfaces:
Serializable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.geo()Returns the value of thegeorecord component.final inthashCode()Returns a hash code value for this object.ip()Returns the value of theiprecord component.lat()Returns the value of thelatrecord component.lon()Returns the value of thelonrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GeoIpData
Creates an instance of aGeoIpDatarecord class.- Parameters:
ip- the value for theiprecord componentlat- the value for thelatrecord componentlon- the value for thelonrecord componentgeo- the value for thegeorecord component
-
-
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). -
ip
Returns the value of theiprecord component.- Returns:
- the value of the
iprecord component
-
lat
Returns the value of thelatrecord component.- Returns:
- the value of the
latrecord component
-
lon
Returns the value of thelonrecord component.- Returns:
- the value of the
lonrecord component
-
geo
Returns the value of thegeorecord component.- Returns:
- the value of the
georecord component
-