Class PrefixOps.OfUnordLong.MyAtomicLong
java.lang.Object
java.lang.Number
java.util.concurrent.atomic.AtomicLong
one.util.streamex.PrefixOps.OfUnordLong.MyAtomicLong
- All Implemented Interfaces:
Serializable
- Enclosing class:
PrefixOps.OfUnordLong
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleaninitialize(long x) On the very first call sets the value toxMethods inherited from class AtomicLong
accumulateAndGet, addAndGet, compareAndExchange, compareAndExchangeAcquire, compareAndExchangeRelease, compareAndSet, decrementAndGet, doubleValue, floatValue, get, getAcquire, getAndAccumulate, getAndAdd, getAndDecrement, getAndIncrement, getAndSet, getAndUpdate, getOpaque, getPlain, incrementAndGet, intValue, lazySet, longValue, set, setOpaque, setPlain, setRelease, toString, updateAndGet, weakCompareAndSet, weakCompareAndSetAcquire, weakCompareAndSetPlain, weakCompareAndSetRelease, weakCompareAndSetVolatileMethods inherited from class Number
byteValue, shortValue
-
Field Details
-
init
private boolean init
-
-
Constructor Details
-
MyAtomicLong
private MyAtomicLong()
-
-
Method Details
-
initialize
public boolean initialize(long x) On the very first call sets the value tox- Parameters:
x- the initial value- Returns:
trueif it was the very first call
-