Package com.iizix.geo
Class RegionLocation.Timezone
java.lang.Object
com.iizix.geo.RegionLocation.Timezone
- Enclosing class:
RegionLocation
Class containing timezone information.
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns if another object equals this one.getCode()
Returns the timezone code, null for none.Returns the GMT offset of the given time zone in seconds, e.g.getID()
Returns the timezone ID, null for none.Returns the computed TimeZone from the information available.int
hashCode()
Returns the hash code of this instance.toString()
Returns a String representation of this instance as "[id,code,gmtOffset,TimeZone]".
Method Details
getID
Returns the timezone ID, null for none.- Returns:
- The timezone ID.
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
Returns the timezone code, null for none.- Returns:
- The timezone code.
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.equals
Returns if another object equals this one.toString
Returns a String representation of this instance as "[id,code,gmtOffset,TimeZone]".