Class 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 Detail

      • MeasurementUnit

        public MeasurementUnit()
        Constructs a new MeasurementUnit.
    • Method Detail

      • 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 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.
        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 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