Package africa.absa.inception.reference
Class MeasurementUnit
java.lang.Object
africa.absa.inception.reference.MeasurementUnit
- All Implemented Interfaces:
Serializable
The MeasurementUnit class holds the information for a measurement unit.
- Author:
- Marcus Portmann
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.getCode()Returns the code for the measurement unit.Returns the description for the measurement unit.Returns the Unicode locale identifier for the measurement unit.getName()Returns the name of the measurement unit.Returns the sort index for the measurement unit.Returns the code for the measurement system.getType()Returns the code for the measurement unit type.inthashCode()Returns a hash code value for the object.voidSet the code for the measurement unit.voidsetDescription(String description) Set the description for the measurement unit.voidsetLocaleId(String localeId) Set the Unicode locale identifier for the measurement unit.voidSet the name of the measurement unit.voidsetSortIndex(Integer sortIndex) Set the sort index for the measurement unit.voidSet the code for the measurement system.voidSet the code for the measurement unit type.
-
Constructor Details
-
MeasurementUnit
public MeasurementUnit()Constructs a new MeasurementUnit.
-
-
Method Details
-
equals
Indicates whether some other object is "equal to" this one. -
getCode
Returns the code for the measurement unit.- Returns:
- the code for the measurement unit
-
getDescription
Returns the description for the measurement unit.- Returns:
- the description for the measurement unit
-
getLocaleId
Returns the Unicode locale identifier for the measurement unit.- Returns:
- the Unicode locale identifier for the measurement unit
-
getName
Returns the name of the measurement unit.- Returns:
- the name of the measurement unit
-
getSortIndex
Returns the sort index for the measurement unit.- Returns:
- the sort index for the measurement unit
-
getSystem
Returns the code for the measurement system.- Returns:
- the code for the measurement system
-
getType
Returns the code for the measurement unit type.- Returns:
- the code for the measurement unit type
-
hashCode
public int hashCode()Returns a hash code value for the object. -
setCode
Set the code for the measurement unit.- Parameters:
code- the code for the measurement unit
-
setDescription
Set the description for the measurement unit.- Parameters:
description- the description for the measurement unit
-
setLocaleId
Set the Unicode locale identifier for the measurement unit.- Parameters:
localeId- the Unicode locale identifier for the measurement unit
-
setName
Set the name of the measurement unit.- Parameters:
name- the name of the measurement unit
-
setSortIndex
Set the sort index for the measurement unit.- Parameters:
sortIndex- the sort index for the measurement unit
-
setSystem
Set the code for the measurement system.- Parameters:
system- the code for the measurement system
-
setType
Set the code for the measurement unit type.- Parameters:
type- the code for the measurement unit type
-