Class GeoInfo

java.lang.Object
com.djrapitops.plan.gathering.domain.GeoInfo
All Implemented Interfaces:
DateHolder, Serializable

public class GeoInfo extends Object implements DateHolder, Serializable
Data class that contains information about IP and Geolocation.
See Also:
Serialized Form
  • Constructor Details

    • GeoInfo

      public GeoInfo(String geolocation, long lastUsed)
  • Method Details

    • getGeolocation

      public String getGeolocation()
    • getDate

      public long getDate()
      Description copied from interface: DateHolder
      Get the date the object holds.
      Specified by:
      getDate in interface DateHolder
      Returns:
      Epoch ms - milliseconds passed since January 1st 1970.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object