Package africa.absa.inception.reference
Class MeasurementSystem
- java.lang.Object
-
- africa.absa.inception.reference.MeasurementSystem
-
- All Implemented Interfaces:
Serializable
@Entity public class MeasurementSystem extends Object implements Serializable
The MeasurementSystem class holds the information for a system of measurement.A system of measurement is a collection of units of measurement and rules relating them to each other. Systems of measurement have historically been important, regulated and defined for the purposes of science and commerce. Systems of measurement in use include the International System of Units (SI), the modern form of the metric system, the British imperial system, and the United States customary system.
- Author:
- Marcus Portmann
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MeasurementSystem()Constructs a new MeasurementSystem.
-
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 system.StringgetDescription()Returns the description for the measurement system.StringgetLocaleId()Returns the Unicode locale identifier for the measurement system.StringgetName()Returns the name of the measurement system.IntegergetSortIndex()Returns the sort index for the measurement system.inthashCode()Returns a hash code value for the object.voidsetCode(String code)Set the code for the measurement system.voidsetDescription(String description)Set the description for the measurement system.voidsetLocaleId(String localeId)Set the Unicode locale identifier for the measurement system.voidsetName(String name)Set the name of the measurement system.voidsetSortIndex(Integer sortIndex)Set the sort index for the measurement system.
-
-
-
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 system.- Returns:
- the code for the measurement system
-
getDescription
public String getDescription()
Returns the description for the measurement system.- Returns:
- the description for the measurement system
-
getLocaleId
public String getLocaleId()
Returns the Unicode locale identifier for the measurement system.- Returns:
- the Unicode locale identifier for the measurement system
-
getName
public String getName()
Returns the name of the measurement system.- Returns:
- the name of the measurement system
-
getSortIndex
public Integer getSortIndex()
Returns the sort index for the measurement system.- Returns:
- the sort index for the measurement system
-
hashCode
public int hashCode()
Returns a hash code value for the object.
-
setCode
public void setCode(String code)
Set the code for the measurement system.- Parameters:
code- the code for the measurement system
-
setDescription
public void setDescription(String description)
Set the description for the measurement system.- Parameters:
description- the description for the measurement system
-
setLocaleId
public void setLocaleId(String localeId)
Set the Unicode locale identifier for the measurement system.- Parameters:
localeId- the Unicode locale identifier for the measurement system
-
setName
public void setName(String name)
Set the name of the measurement system.- Parameters:
name- the name of the measurement system
-
setSortIndex
public void setSortIndex(Integer sortIndex)
Set the sort index for the measurement system.- Parameters:
sortIndex- the sort index for the measurement system
-
-