Class UnitImpl

  • All Implemented Interfaces:
    IUnit

    public class UnitImpl
    extends Object
    implements IUnit
    • Constructor Detail

      • UnitImpl

        protected UnitImpl​(String unitName)
    • Method Detail

      • getUnitName

        public String getUnitName()
        Specified by:
        getUnitName in interface IUnit
        Returns:
        Returns a string describing the unit.
      • setUnitName

        public void setUnitName​(String unitName)
        Description copied from interface: IUnit
        Sets the string describing the unit.
        Specified by:
        setUnitName in interface IUnit
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object