Package com.iizix.geo

Class RegionLocation.Timezone

java.lang.Object
com.iizix.geo.RegionLocation.Timezone
Enclosing class:
RegionLocation

public static class RegionLocation.Timezone extends Object
Class containing timezone information.
  • Method Details

    • getID

      public String getID()
      Returns the timezone ID, null for none.
      Returns:
      The timezone ID.
    • getTimeZone

      public TimeZone getTimeZone()
      Returns the computed TimeZone from the information available. Please note that it may be incorrect if the timezone ID cannot be matched properly.
      Returns:
      The TimeZone, never null.
    • getCode

      public String getCode()
      Returns the timezone code, null for none.
      Returns:
      The timezone code.
    • getGMTOffset

      public Integer getGMTOffset()
      Returns the GMT offset of the given time zone in seconds, e.g. -25200 for PST's -7h GMT offset, null for none.
      Returns:
      The GMT offset in seconds.
    • hashCode

      public int hashCode()
      Returns the hash code of this instance.
      Overrides:
      hashCode in class Object
      Returns:
      The hash code.
    • equals

      public boolean equals(Object obj)
      Returns if another object equals this one.
      Overrides:
      equals in class Object
      Returns:
      The equality flag.
    • toString

      public String toString()
      Returns a String representation of this instance as "[id,code,gmtOffset,TimeZone]".
      Overrides:
      toString in class Object
      Returns:
      The string.