Package one.util.streamex
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 TypeMethodDescriptionboolean
initialize
(long x) On the very first call sets the value tox
Methods inherited from class java.util.concurrent.atomic.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, weakCompareAndSetVolatile
Methods inherited from class java.lang.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:
true
if it was the very first call
-