Class TAtomicReferenceFieldUpdater<T,V>
java.lang.Object
org.teavm.classlib.java.util.concurrent.atomic.TAtomicReferenceFieldUpdater<T,V>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal V
accumulateAndGet
(T obj, V x, BinaryOperator<V> accumulatorFunction) abstract boolean
compareAndSet
(T obj, V expect, V update) abstract V
final V
getAndAccumulate
(T obj, V x, BinaryOperator<V> accumulatorFunction) final V
getAndUpdate
(T obj, UnaryOperator<V> updateFunction) abstract void
static <U,
W> TAtomicReferenceFieldUpdater<U, W> newUpdater
(TClass<U> tclass, TClass<W> vclass, String fieldName) abstract void
final V
updateAndGet
(T obj, UnaryOperator<V> updateFunction) abstract boolean
weakCompareAndSet
(T obj, V expect, V update)
-
Constructor Details
-
TAtomicReferenceFieldUpdater
protected TAtomicReferenceFieldUpdater()
-
-
Method Details
-
newUpdater
public static <U,W> TAtomicReferenceFieldUpdater<U,W> newUpdater(TClass<U> tclass, TClass<W> vclass, String fieldName) -
compareAndSet
-
weakCompareAndSet
-
set
-
lazySet
-
get
-
getAndSet
-
getAndUpdate
-
updateAndGet
-
getAndAccumulate
-
accumulateAndGet
-