Package africa.absa.inception.reference
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:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object object)Indicates whether some other object is "equal to" this one.StringgetDescription()Returns the description for the time zone.StringgetId()Returns the ID for the time zone.StringgetLocaleId()Returns the Unicode locale identifier for the time zone.StringgetName()Returns the name of the time zone.IntegergetSortIndex()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.voidsetId(String id)Set the ID for the time zone.voidsetLocaleId(String localeId)Set the Unicode locale identifier for the time zone.voidsetName(String name)Set the name of the time zone.voidsetSortIndex(Integer sortIndex)Set the sort index for the time zone.
-
-
-
Constructor Detail
-
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 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 Detail
-
equals
public boolean equals(Object object)
Indicates whether some other object is "equal to" this one.
-
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.
-
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
-
-