Uses of Class
org.multiverse.api.functions.LongFunction
Packages that use LongFunction
Package
Description
-
Uses of LongFunction in org.multiverse.api.functions
Subclasses of LongFunction in org.multiverse.api.functionsFields in org.multiverse.api.functions declared as LongFunctionModifier and TypeFieldDescriptionprivate static final LongFunction
Functions.decOneLongFunction
private static final LongFunction
Functions.identityLongFunction
private static final LongFunction
Functions.incOneLongFunction
Methods in org.multiverse.api.functions that return LongFunctionModifier and TypeMethodDescriptionstatic 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 LongFunctionModifier and TypeMethodDescriptionlong
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 LongFunctionModifier and TypeMethodDescriptionprivate long
GammaTxnLong.alter
(GammaTxn tx, LongFunction function, boolean returnOld) final long
GammaTxnLong.alterAndGet
(LongFunction function) final long
GammaTxnLong.alterAndGet
(Txn tx, LongFunction function) final long
GammaTxnLong.alterAndGet
(GammaTxn tx, LongFunction function) private long
GammaTxnLong.atomicAlter
(LongFunction function, boolean returnOld) final long
GammaTxnLong.atomicAlterAndGet
(LongFunction function) final long
GammaTxnLong.atomicGetAndAlter
(LongFunction function) final void
GammaTxnLong.commute
(LongFunction function) final void
GammaTxnLong.commute
(Txn tx, LongFunction function) final void
GammaTxnLong.commute
(GammaTxn tx, LongFunction function) final long
GammaTxnLong.getAndAlter
(LongFunction function) final long
GammaTxnLong.getAndAlter
(Txn tx, LongFunction function) final long
GammaTxnLong.getAndAlter
(GammaTxn tx, LongFunction function)