Class TimeZone

java.lang.Object
africa.absa.inception.reference.TimeZone
All Implemented Interfaces:
Serializable

public class TimeZone extends Object implements Serializable
The TimeZone class holds the information for a time zone.

A time zone is a region of the globe that observes a uniform standard time for legal, commercial, and social purposes. Time zones tend to follow the boundaries of countries and their subdivisions instead of strictly following longitude, because it is convenient for areas in close commercial or other communication to keep the same time.

Author:
Marcus Portmann
See Also:
  • Constructor Details

    • TimeZone

      public TimeZone()
      Constructs a new TimeZone.
    • TimeZone

      public TimeZone(String id, String localeId, String name, String description, Integer sortIndex)
      Constructs a new TimeZone.
      Parameters:
      id - the ID for the time zone
      localeId - the Unicode locale identifier for the time zone
      name - the name of the time zone
      description - the description for the time zone
      sortIndex - the sort index for the time zone
  • Method Details

    • equals

      public boolean equals(Object object)
      Indicates whether some other object is "equal to" this one.
      Overrides:
      equals in class Object
      Parameters:
      object - the reference object with which to compare
      Returns:
      true if this object is the same as the object argument otherwise false
    • getDescription

      public String getDescription()
      Returns the description for the time zone.
      Returns:
      the description for the time zone
    • getId

      public String getId()
      Returns the ID for the time zone.
      Returns:
      the ID for the time zone
    • getLocaleId

      public String getLocaleId()
      Returns the Unicode locale identifier for the time zone.
      Returns:
      the Unicode locale identifier for the time zone
    • getName

      public String getName()
      Returns the name of the time zone.
      Returns:
      the name of the time zone
    • getSortIndex

      public Integer getSortIndex()
      Returns the sort index for the time zone.
      Returns:
      the sort index for the time zone
    • hashCode

      public int hashCode()
      Returns a hash code value for the object.
      Overrides:
      hashCode in class Object
      Returns:
      a hash code value for the object
    • setDescription

      public void setDescription(String description)
      Set the description for the time zone.
      Parameters:
      description - the description for the time zone
    • setId

      public void setId(String id)
      Set the ID for the time zone.
      Parameters:
      id - the ID for the time zone
    • setLocaleId

      public void setLocaleId(String localeId)
      Set the Unicode locale identifier for the time zone.
      Parameters:
      localeId - the Unicode locale identifier for the time zone
    • setName

      public void setName(String name)
      Set the name of the time zone.
      Parameters:
      name - the name of the time zone
    • setSortIndex

      public void setSortIndex(Integer sortIndex)
      Set the sort index for the time zone.
      Parameters:
      sortIndex - the sort index for the time zone