Class MutableLong

java.lang.Object
io.deephaven.util.mutable.MutableLong

public class MutableLong extends Object
Minimal mutable wrapper for a long value. Loosely based on org.apache.commons.lang3.mutable.MutableLong, but without inheriting from Number, or providing any overloads that accept Number or any boxed types.

Deliberately does not extend Number, does not implement toString()/equals/hashcode(), or implement Comparable.

  • Constructor Details

    • MutableLong

      public MutableLong()
    • MutableLong

      public MutableLong(long value)
  • Method Details

    • get

      public long get()
    • set

      public void set(long value)
    • add

      public void add(long addend)
    • addAndGet

      public long addAndGet(long addend)
    • getAndAdd

      public long getAndAdd(long addend)
    • getAndIncrement

      public long getAndIncrement()
    • increment

      public void increment()
    • decrement

      public void decrement()
    • incrementAndGet

      public long incrementAndGet()
    • subtract

      public void subtract(long subtrahend)