Class OModifiableInteger

java.lang.Object
java.lang.Number
com.orientechnologies.common.types.OModifiableInteger
All Implemented Interfaces:
Serializable, Comparable<OModifiableInteger>

public class OModifiableInteger extends Number implements Comparable<OModifiableInteger>
Modifiable Integer. Like java.lang.Integer but the value is modifiable.
Author:
Luca Garulli (l.garulli--(at)--orientdb.com)
See Also:
  • Field Details

    • value

      public int value
  • Constructor Details

    • OModifiableInteger

      public OModifiableInteger()
    • OModifiableInteger

      public OModifiableInteger(int iValue)
  • Method Details

    • setValue

      public void setValue(int iValue)
    • getValue

      public int getValue()
    • increment

      public void increment()
    • increment

      public void increment(int iValue)
    • decrement

      public void decrement()
    • decrement

      public void decrement(int iValue)
    • compareTo

      public int compareTo(OModifiableInteger anotherInteger)
      Specified by:
      compareTo in interface Comparable<OModifiableInteger>
    • byteValue

      public byte byteValue()
      Overrides:
      byteValue in class Number
    • shortValue

      public short shortValue()
      Overrides:
      shortValue in class Number
    • floatValue

      public float floatValue()
      Specified by:
      floatValue in class Number
    • doubleValue

      public double doubleValue()
      Specified by:
      doubleValue in class Number
    • intValue

      public int intValue()
      Specified by:
      intValue in class Number
    • longValue

      public long longValue()
      Specified by:
      longValue in class Number
    • toInteger

      public Integer toInteger()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object