Record Class GeoInfo
java.lang.Object
java.lang.Record
com.djrapitops.plan.gathering.domain.GeoInfo
- All Implemented Interfaces:
DateHolder, Serializable
public record GeoInfo(String geolocation, long date)
extends Record
implements DateHolder, Serializable
Data class that contains information about IP and Geolocation.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongdate()Returns the value of thedaterecord component.booleanIndicates whether some other object is "equal to" this one.Returns the value of thegeolocationrecord component.inthashCode()Returns a hash code value for this object.toString()Returns a string representation of this record class.
-
Constructor Details
-
GeoInfo
Creates an instance of aGeoInforecord class.- Parameters:
geolocation- the value for thegeolocationrecord componentdate- the value for thedaterecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
hashCode
-
toString
-
geolocation
Returns the value of thegeolocationrecord component.- Returns:
- the value of the
geolocationrecord component
-
date
public long date()Returns the value of thedaterecord component.- Specified by:
datein interfaceDateHolder- Returns:
- the value of the
daterecord component
-