Class MutableLong


  • public final class MutableLong
    extends java.lang.Object
    A mutable long in a box. If you need a thread-safe box, use AtomicLong instead.
    • Constructor Summary

      Constructors 
      Constructor Description
      MutableLong​(long value)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long get()  
      long getAndIncrement()  
      void set​(long value)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MutableLong

        public MutableLong​(long value)
    • Method Detail

      • get

        public long get()
      • set

        public void set​(long value)
      • getAndIncrement

        public long getAndIncrement()