Class 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()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • GeoInfo

        public GeoInfo​(java.lang.String geolocation,
                       long lastUsed)
    • 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 interface DateHolder
        Returns:
        Epoch ms - milliseconds passed since January 1st 1970.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object