Class MutableLong

java.lang.Object
java.lang.Number
org.optaplanner.core.impl.util.MutableLong
All Implemented Interfaces:
Serializable, Comparable<MutableLong>

public final class MutableLong extends Number implements Comparable<MutableLong>
See Also:
  • Constructor Details

    • MutableLong

      public MutableLong()
    • MutableLong

      public MutableLong(long value)
  • Method Details

    • setValue

      public void setValue(long value)
    • increment

      public long increment()
    • decrement

      public long decrement()
    • add

      public long add(long addend)
    • subtract

      public long subtract(long subtrahend)
    • intValue

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

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

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

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

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

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

      public int compareTo(MutableLong other)
      Specified by:
      compareTo in interface Comparable<MutableLong>
    • toString

      public String toString()
      Overrides:
      toString in class Object