Class Units.UnitWrapper

  • Enclosing class:
    Units

    public static class Units.UnitWrapper
    extends java.lang.Object
    Contains extended info about a unit.
    • Constructor Detail

      • UnitWrapper

        public UnitWrapper​(Unit u)
        Creates a new UnitWrapper object.
      • UnitWrapper

        public UnitWrapper​(Unit u,
                           long num)
        Creates a new UnitWrapper object.
    • Method Detail

      • getUnit

        public Unit getUnit()
      • getAmount

        public long getAmount()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getUnmodifiedAmount

        public long getUnmodifiedAmount()
        Returns the value of unmodifiedNumber.
        Returns:
        Returns unmodifiedNumber.
      • setUnmodifiedAmount

        public void setUnmodifiedAmount​(long unmodifiedNumber)
        Sets the value of unmodifiedNumber.
        Parameters:
        unmodifiedNumber - The value for unmodifiedNumber.