Package com.iizix.geo
Class RegionLocation.Timezone
- java.lang.Object
- com.iizix.geo.RegionLocation.Timezone
 
- Enclosing class:
- RegionLocation
 - public static class RegionLocation.Timezone extends java.lang.ObjectClass containing timezone information.
- Method Summary- All Methods Instance Methods Concrete Methods - Modifier and Type - Method - Description - boolean- equals(java.lang.Object obj)Returns if another object equals this one.- java.lang.String- getCode()Returns the timezone code, null for none.- java.lang.Integer- getGMTOffset()Returns the GMT offset of the given time zone in seconds, e.g.- java.lang.String- getID()Returns the timezone ID, null for none.- java.util.TimeZone- getTimeZone()Returns the computed TimeZone from the information available.- int- hashCode()Returns the hash code of this instance.- java.lang.String- toString()Returns a String representation of this instance as "[id,code,gmtOffset,TimeZone]".
 
- Method Detail- getID- public java.lang.String getID() Returns the timezone ID, null for none.- Returns:
- The timezone ID.
 
 - getTimeZone- public java.util.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 java.lang.String getCode() Returns the timezone code, null for none.- Returns:
- The timezone code.
 
 - getGMTOffset- public java.lang.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:
- hashCodein class- java.lang.Object
- Returns:
- The hash code.
 
 - equals- public boolean equals(java.lang.Object obj) Returns if another object equals this one.- Overrides:
- equalsin class- java.lang.Object
- Returns:
- The equality flag.
 
 - toString- public java.lang.String toString() Returns a String representation of this instance as "[id,code,gmtOffset,TimeZone]".- Overrides:
- toStringin class- java.lang.Object
- Returns:
- The string.