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:
  • Constructor Details

    • MeasurementSystem

      public MeasurementSystem()
      Constructs a new MeasurementSystem.
  • Method Details

    • equals

      public boolean equals(Object object)
      Indicates whether some other object is "equal to" this one.
      Overrides:
      equals in class Object
      Parameters:
      object - the reference object with which to compare
      Returns:
      true if this object is the same as the object argument otherwise false
    • 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.
      Overrides:
      hashCode in class Object
      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