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