Package org.hibernate.internal.util
Class MutableLong
- java.lang.Object
-
- org.hibernate.internal.util.MutableLong
-
public class MutableLong extends Object
A more performant version ofAtomicLongin cases where we do not have to worry about concurrency. So usually as a variable referenced in anonymous-inner or lambda or ...
-
-
Constructor Summary
Constructors Constructor Description MutableLong()MutableLong(long value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MutableLongdeepCopy()longget()longgetAndIncrement()voidincrease()longincrementAndGet()voidset(long value)
-
-
-
Method Detail
-
deepCopy
public MutableLong deepCopy()
-
getAndIncrement
public long getAndIncrement()
-
incrementAndGet
public long incrementAndGet()
-
get
public long get()
-
set
public void set(long value)
-
increase
public void increase()
-
-