Package | Description |
---|---|
org.multiverse.api.functions | |
org.multiverse.api.references | |
org.multiverse.stms.gamma.transactionalobjects |
Modifier and Type | Class and Description |
---|---|
class |
IncIntFunction
A
IntFunction that increased the value with the supplied amount. |
Modifier and Type | Method and Description |
---|---|
static IntFunction |
Functions.decIntFunction()
Returns an
IntFunction that decrements the input value by one. |
static IntFunction |
Functions.identityIntFunction()
Returns an identity
IntFunction (a function that returns its input value). |
static IntFunction |
Functions.incIntFunction()
Returns an
IntFunction that increments the input value by one. |
static IntFunction |
Functions.incIntFunction(int amount)
Returns a
IntFunction that increments with the given amount. |
Modifier and Type | Method and Description |
---|---|
int |
TxnInteger.alterAndGet(IntFunction function)
Alters the value stored in this Ref using the provided function and returns the result.
|
int |
TxnInteger.alterAndGet(Txn txn,
IntFunction function)
Alters the value stored in this Ref using the provided function and lifting on the provided txn.
|
int |
TxnInteger.atomicAlterAndGet(IntFunction function)
Atomically applies the function to the current value in this ref and returns the new value.
|
int |
TxnInteger.atomicGetAndAlter(IntFunction function)
Atomically applies the function to alter the value stored in this ref and returns the old value.
|
void |
TxnInteger.commute(IntFunction function)
Applies the function on the ref in a commuting manner.
|
void |
TxnInteger.commute(Txn txn,
IntFunction function)
Applies the function on the ref in a commuting manner.
|
int |
TxnInteger.getAndAlter(IntFunction function)
Alters the value stored in this Ref using the provided function amd returns the old value.
|
int |
TxnInteger.getAndAlter(Txn txn,
IntFunction function)
Alters the value stored in this Ref using the function and returns the old value, using the provided txn.
|
Modifier and Type | Method and Description |
---|---|
int |
GammaTxnInteger.alterAndGet(GammaTxn tx,
IntFunction function) |
int |
GammaTxnInteger.alterAndGet(IntFunction function) |
int |
GammaTxnInteger.alterAndGet(Txn tx,
IntFunction function) |
int |
GammaTxnInteger.atomicAlterAndGet(IntFunction function) |
int |
GammaTxnInteger.atomicGetAndAlter(IntFunction function) |
void |
GammaTxnInteger.commute(GammaTxn tx,
IntFunction function) |
void |
GammaTxnInteger.commute(IntFunction function) |
void |
GammaTxnInteger.commute(Txn tx,
IntFunction function) |
int |
GammaTxnInteger.getAndAlter(GammaTxn tx,
IntFunction function) |
int |
GammaTxnInteger.getAndAlter(IntFunction function) |
int |
GammaTxnInteger.getAndAlter(Txn tx,
IntFunction function) |
Copyright © 2020. All rights reserved.