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 VaccumulateAndGet(T obj, V x, BinaryOperator<V> accumulatorFunction) abstract booleancompareAndSet(T obj, V expect, V update) abstract Vfinal VgetAndAccumulate(T obj, V x, BinaryOperator<V> accumulatorFunction) final VgetAndUpdate(T obj, UnaryOperator<V> updateFunction) abstract voidstatic <U,W> TAtomicReferenceFieldUpdater <U, W> newUpdater(TClass<U> tclass, TClass<W> vclass, String fieldName) abstract voidfinal VupdateAndGet(T obj, UnaryOperator<V> updateFunction) abstract booleanweakCompareAndSet(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
-