Package org.hibernate.internal.util
Class MutableLong
- java.lang.Object
-
- org.hibernate.internal.util.MutableLong
-
public class MutableLong extends Object
A more performant version ofAtomicLong
in 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 MutableLong
deepCopy()
long
get()
long
getAndIncrement()
void
increase()
long
incrementAndGet()
void
set(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()
-
-