Class GeoInfo
- java.lang.Object
-
- com.djrapitops.plan.gathering.domain.GeoInfo
-
- All Implemented Interfaces:
DateHolder
,java.io.Serializable
public class GeoInfo extends java.lang.Object implements DateHolder, java.io.Serializable
Data class that contains information about IP and Geolocation.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GeoInfo(java.lang.String geolocation, long lastUsed)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
long
getDate()
Get the date the object holds.java.lang.String
getGeolocation()
int
hashCode()
java.lang.String
toString()
-
-
-
Method Detail
-
getGeolocation
public java.lang.String getGeolocation()
-
getDate
public long getDate()
Description copied from interface:DateHolder
Get the date the object holds.- Specified by:
getDate
in interfaceDateHolder
- Returns:
- Epoch ms - milliseconds passed since January 1st 1970.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-