Uses of Class
org.multiverse.api.functions.LongFunction
-
Packages that use LongFunction Package Description org.multiverse.api.functions org.multiverse.api.references org.multiverse.stms.gamma.transactionalobjects -
-
Uses of LongFunction in org.multiverse.api.functions
Methods in org.multiverse.api.functions that return LongFunction Modifier and Type Method Description static LongFunction
Functions. decLongFunction()
Returns aLongFunction
that decrements the input value by one.static LongFunction
Functions. identityLongFunction()
Returns an identityLongFunction
(a function that returns its input value).static LongFunction
Functions. incLongFunction()
Returns aLongFunction
that increments the input value by one.static LongFunction
Functions. incLongFunction(long amount)
Returns aLongFunction
that increments with the given amount. -
Uses of LongFunction in org.multiverse.api.references
Methods in org.multiverse.api.references with parameters of type LongFunction Modifier and Type Method Description long
TxnLong. alterAndGet(LongFunction function)
Alters the value stored in this Ref using the provided function and returns the result.long
TxnLong. alterAndGet(Txn txn, LongFunction function)
Alters the value stored in this Ref using the provided function and lifting on the provided txn.long
TxnLong. atomicAlterAndGet(LongFunction function)
Atomically applies the function to the current value in this ref and returns the new value.long
TxnLong. atomicGetAndAlter(LongFunction function)
Atomically applies the function to alter the value stored in this ref and returns the old value.void
TxnLong. commute(LongFunction function)
Applies the function on the ref in a commuting manner.void
TxnLong. commute(Txn txn, LongFunction function)
Applies the function on the ref in a commuting manner.long
TxnLong. getAndAlter(LongFunction function)
Alters the value stored in this Ref using the provided function amd returns the old value.long
TxnLong. getAndAlter(Txn txn, LongFunction function)
Alters the value stored in this Ref using the function and returns the old value, using the provided txn. -
Uses of LongFunction in org.multiverse.stms.gamma.transactionalobjects
Methods in org.multiverse.stms.gamma.transactionalobjects with parameters of type LongFunction Modifier and Type Method Description long
GammaTxnLong. alterAndGet(LongFunction function)
long
GammaTxnLong. alterAndGet(Txn tx, LongFunction function)
long
GammaTxnLong. alterAndGet(GammaTxn tx, LongFunction function)
long
GammaTxnLong. atomicAlterAndGet(LongFunction function)
long
GammaTxnLong. atomicGetAndAlter(LongFunction function)
void
GammaTxnLong. commute(LongFunction function)
void
GammaTxnLong. commute(Txn tx, LongFunction function)
void
GammaTxnLong. commute(GammaTxn tx, LongFunction function)
long
GammaTxnLong. getAndAlter(LongFunction function)
long
GammaTxnLong. getAndAlter(Txn tx, LongFunction function)
long
GammaTxnLong. getAndAlter(GammaTxn tx, LongFunction function)
-