public class GeoInfo extends java.lang.Object implements DateHolder, java.io.Serializable
Constructor and Description |
---|
GeoInfo(java.net.InetAddress address,
java.lang.String geolocation,
long lastUsed) |
GeoInfo(java.lang.String ip,
java.lang.String geolocation,
long date) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
long |
getDate()
Get the date the object holds.
|
java.lang.String |
getGeolocation() |
java.lang.String |
getIp() |
int |
hashCode() |
static DateMap<GeoInfo> |
intoDateMap(java.lang.Iterable<GeoInfo> geoInfo) |
java.lang.String |
toString() |
public GeoInfo(java.net.InetAddress address, java.lang.String geolocation, long lastUsed)
public GeoInfo(java.lang.String ip, java.lang.String geolocation, long date)
public java.lang.String getIp()
public java.lang.String getGeolocation()
public long getDate()
DateHolder
getDate
in interface DateHolder
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object