Package africa.absa.inception.reference
Class MeasurementUnit
- java.lang.Object
-
- africa.absa.inception.reference.MeasurementUnit
-
- All Implemented Interfaces:
Serializable
@Entity public class MeasurementUnit extends Object implements Serializable
The MeasurementUnit class holds the information for a measurement unit.- Author:
- Marcus Portmann
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MeasurementUnit()Constructs a new MeasurementUnit.
-
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.StringgetCode()Returns the code for the measurement unit.StringgetDescription()Returns the description for the measurement unit.StringgetLocaleId()Returns the Unicode locale identifier for the measurement unit.StringgetName()Returns the name of the measurement unit.IntegergetSortIndex()Returns the sort index for the measurement unit.StringgetSystem()Returns the code for the measurement system.StringgetType()Returns the code for the measurement unit type.inthashCode()Returns a hash code value for the object.voidsetCode(String code)Set 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.voidsetName(String name)Set the name of the measurement unit.voidsetSortIndex(Integer sortIndex)Set the sort index for the measurement unit.voidsetSystem(String system)Set the code for the measurement system.voidsetType(String type)Set the code for the measurement unit type.
-
-
-
Method Detail
-
equals
public boolean equals(Object object)
Indicates whether some other object is "equal to" this one.
-
getCode
public String getCode()
Returns the code for the measurement unit.- Returns:
- the code for the measurement unit
-
getDescription
public String getDescription()
Returns the description for the measurement unit.- Returns:
- the description for the measurement unit
-
getLocaleId
public String getLocaleId()
Returns the Unicode locale identifier for the measurement unit.- Returns:
- the Unicode locale identifier for the measurement unit
-
getName
public String getName()
Returns the name of the measurement unit.- Returns:
- the name of the measurement unit
-
getSortIndex
public Integer getSortIndex()
Returns the sort index for the measurement unit.- Returns:
- the sort index for the measurement unit
-
getSystem
public String getSystem()
Returns the code for the measurement system.- Returns:
- the code for the measurement system
-
getType
public String 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
public void setCode(String code)
Set the code for the measurement unit.- Parameters:
code- the code for the measurement unit
-
setDescription
public void setDescription(String description)
Set the description for the measurement unit.- Parameters:
description- the description for the measurement unit
-
setLocaleId
public void setLocaleId(String localeId)
Set the Unicode locale identifier for the measurement unit.- Parameters:
localeId- the Unicode locale identifier for the measurement unit
-
setName
public void setName(String name)
Set the name of the measurement unit.- Parameters:
name- the name of the measurement unit
-
setSortIndex
public void setSortIndex(Integer sortIndex)
Set the sort index for the measurement unit.- Parameters:
sortIndex- the sort index for the measurement unit
-
setSystem
public void setSystem(String system)
Set the code for the measurement system.- Parameters:
system- the code for the measurement system
-
setType
public void setType(String type)
Set the code for the measurement unit type.- Parameters:
type- the code for the measurement unit type
-
-