Package | Description |
---|---|
org.multiverse.api.functions | |
org.multiverse.api.references | |
org.multiverse.stms.gamma.transactionalobjects |
Modifier and Type | Method and Description |
---|---|
static LongFunction |
Functions.decLongFunction()
Returns a
LongFunction that decrements the input value by one. |
static LongFunction |
Functions.identityLongFunction()
Returns an identity
LongFunction (a function that returns its input value). |
static LongFunction |
Functions.incLongFunction()
Returns a
LongFunction that increments the input value by one. |
static LongFunction |
Functions.incLongFunction(long amount)
Returns a
LongFunction that increments with the given amount. |
Modifier and Type | Method and 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.
|
Modifier and Type | Method and Description |
---|---|
long |
GammaTxnLong.alterAndGet(GammaTxn tx,
LongFunction function) |
long |
GammaTxnLong.alterAndGet(LongFunction function) |
long |
GammaTxnLong.alterAndGet(Txn tx,
LongFunction function) |
long |
GammaTxnLong.atomicAlterAndGet(LongFunction function) |
long |
GammaTxnLong.atomicGetAndAlter(LongFunction function) |
void |
GammaTxnLong.commute(GammaTxn tx,
LongFunction function) |
void |
GammaTxnLong.commute(LongFunction function) |
void |
GammaTxnLong.commute(Txn tx,
LongFunction function) |
long |
GammaTxnLong.getAndAlter(GammaTxn tx,
LongFunction function) |
long |
GammaTxnLong.getAndAlter(LongFunction function) |
long |
GammaTxnLong.getAndAlter(Txn tx,
LongFunction function) |
Copyright © 2020. All rights reserved.