Package africa.absa.inception.reference
Class TimeZone
java.lang.Object
africa.absa.inception.reference.TimeZone
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.Returns the description for the time zone.getId()Returns the ID for the time zone.Returns the Unicode locale identifier for the time zone.getName()Returns the name of the time zone.Returns the sort index for the time zone.inthashCode()Returns a hash code value for the object.voidsetDescription(String description) Set the description for the time zone.voidSet the ID for the time zone.voidsetLocaleId(String localeId) Set the Unicode locale identifier for the time zone.voidSet the name of the time zone.voidsetSortIndex(Integer sortIndex) Set the sort index for the time zone.
-
Constructor Details
-
TimeZone
public TimeZone()Constructs a new TimeZone. -
TimeZone
Constructs a new TimeZone.- Parameters:
id- the ID for the time zonelocaleId- the Unicode locale identifier for the time zonename- the name of the time zonedescription- the description for the time zonesortIndex- the sort index for the time zone
-
-
Method Details
-
equals
Indicates whether some other object is "equal to" this one. -
getDescription
Returns the description for the time zone.- Returns:
- the description for the time zone
-
getId
Returns the ID for the time zone.- Returns:
- the ID for the time zone
-
getLocaleId
Returns the Unicode locale identifier for the time zone.- Returns:
- the Unicode locale identifier for the time zone
-
getName
Returns the name of the time zone.- Returns:
- the name of the time zone
-
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. -
setDescription
Set the description for the time zone.- Parameters:
description- the description for the time zone
-
setId
Set the ID for the time zone.- Parameters:
id- the ID for the time zone
-
setLocaleId
Set the Unicode locale identifier for the time zone.- Parameters:
localeId- the Unicode locale identifier for the time zone
-
setName
Set the name of the time zone.- Parameters:
name- the name of the time zone
-
setSortIndex
Set the sort index for the time zone.- Parameters:
sortIndex- the sort index for the time zone
-