Package | Description |
---|---|
org.multiverse.api.functions | |
org.multiverse.api.references | |
org.multiverse.stms.gamma.transactionalobjects | |
org.multiverse.stms.gamma.transactions |
Modifier and Type | Class and Description |
---|---|
class |
BooleanFunction
A
Function for primitives that accepts an argument of type boolean and returns a new
value of the same type. |
class |
DoubleFunction
A
Function for primitives that accepts an argument of type double and returns a new
value of the same type. |
class |
IncIntFunction
A
IntFunction that increased the value with the supplied amount. |
class |
IntFunction
A
Function for primitives that accepts an argument of type int and returns a new
value of the same type. |
class |
LongFunction
A
Function for primitives that accepts an argument of type long and returns a new
value of the same type. |
Modifier and Type | Method and Description |
---|---|
static Function |
Functions.identityFunction()
Returns an
Function that returns its input. |
Modifier and Type | Method and Description |
---|---|
E |
TxnRef.alterAndGet(Function<E> function)
Alters the value stored in this Ref using the provided function and returns the result.
|
E |
TxnRef.alterAndGet(Txn txn,
Function<E> function)
Alters the value stored in this Ref using the provided function and lifting on the provided txn.
|
E |
TxnRef.atomicAlterAndGet(Function<E> function)
Atomically applies the function to the current value in this ref and returns the new value.
|
E |
TxnRef.atomicGetAndAlter(Function<E> function)
Atomically applies the function to alter the value stored in this ref and returns the old value.
|
void |
TxnRef.commute(Function<E> function)
Applies the function on the ref in a commuting manner.
|
void |
TxnRef.commute(Txn txn,
Function<E> function)
Applies the function on the ref in a commuting manner.
|
E |
TxnRef.getAndAlter(Function<E> function)
Alters the value stored in this Ref using the provided function amd returns the old value.
|
E |
TxnRef.getAndAlter(Txn txn,
Function<E> function)
Alters the value stored in this Ref using the function and returns the old value, using the provided txn.
|
Modifier and Type | Field and Description |
---|---|
Function |
CallableNode.function |
Modifier and Type | Method and Description |
---|---|
void |
Tranlocal.addCommutingFunction(GammaObjectPool pool,
Function function) |
E |
GammaTxnRef.alterAndGet(Function<E> function) |
E |
GammaTxnRef.alterAndGet(GammaTxn tx,
Function<E> function) |
E |
GammaTxnRef.alterAndGet(Txn tx,
Function<E> function) |
E |
GammaTxnRef.atomicAlterAndGet(Function<E> function) |
E |
GammaTxnRef.atomicGetAndAlter(Function<E> function) |
void |
GammaTxnRef.commute(Function<E> function) |
void |
GammaTxnRef.commute(GammaTxn tx,
Function<E> function) |
void |
GammaTxnRef.commute(Txn tx,
Function<E> function) |
E |
GammaTxnRef.getAndAlter(Function<E> function) |
E |
GammaTxnRef.getAndAlter(GammaTxn tx,
Function<E> function) |
E |
GammaTxnRef.getAndAlter(Txn tx,
Function<E> function) |
void |
BaseGammaTxnRef.openForCommute(FatFixedLengthGammaTxn tx,
Function function) |
void |
BaseGammaTxnRef.openForCommute(FatMonoGammaTxn tx,
Function function) |
void |
BaseGammaTxnRef.openForCommute(FatVariableLengthGammaTxn tx,
Function function) |
void |
BaseGammaTxnRef.openForCommute(GammaTxn tx,
Function function) |
Constructor and Description |
---|
CallableNode(Function function,
CallableNode next) |
Modifier and Type | Method and Description |
---|---|
IllegalTxnStateException |
GammaTxn.abortCommuteOnBadStatus(GammaObject object,
Function function) |
Copyright © 2020. All rights reserved.