Package | Description |
---|---|
org.multiverse.api.functions | |
org.multiverse.api.references | |
org.multiverse.stms.gamma.transactionalobjects |
Modifier and Type | Method and Description |
---|---|
static DoubleFunction |
Functions.identityDoubleFunction()
Returns an
DoubleFunction that returns its input. |
static DoubleFunction |
Functions.incDoubleFunction()
Returns a
DoubleFunction that increments the input with one. |
Modifier and Type | Method and Description |
---|---|
double |
TxnDouble.alterAndGet(DoubleFunction function)
Alters the value stored in this Ref using the provided function and returns the result.
|
double |
TxnDouble.alterAndGet(Txn txn,
DoubleFunction function)
Alters the value stored in this Ref using the provided function and lifting on the provided txn.
|
double |
TxnDouble.atomicAlterAndGet(DoubleFunction function)
Atomically applies the function to the current value in this ref and returns the new value.
|
double |
TxnDouble.atomicGetAndAlter(DoubleFunction function)
Atomically applies the function to alter the value stored in this ref and returns the old value.
|
void |
TxnDouble.commute(DoubleFunction function)
Applies the function on the ref in a commuting manner.
|
void |
TxnDouble.commute(Txn txn,
DoubleFunction function)
Applies the function on the ref in a commuting manner.
|
double |
TxnDouble.getAndAlter(DoubleFunction function)
Alters the value stored in this Ref using the provided function amd returns the old value.
|
double |
TxnDouble.getAndAlter(Txn txn,
DoubleFunction 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 |
---|---|
double |
GammaTxnDouble.alter(GammaTxn tx,
DoubleFunction function,
boolean returnOld) |
double |
GammaTxnDouble.alterAndGet(DoubleFunction function) |
double |
GammaTxnDouble.alterAndGet(GammaTxn tx,
DoubleFunction function) |
double |
GammaTxnDouble.alterAndGet(Txn tx,
DoubleFunction function) |
double |
GammaTxnDouble.atomicAlterAndGet(DoubleFunction function) |
double |
GammaTxnDouble.atomicGetAndAlter(DoubleFunction function) |
void |
GammaTxnDouble.commute(DoubleFunction function) |
void |
GammaTxnDouble.commute(GammaTxn tx,
DoubleFunction function) |
void |
GammaTxnDouble.commute(Txn tx,
DoubleFunction function) |
double |
GammaTxnDouble.getAndAlter(DoubleFunction function) |
double |
GammaTxnDouble.getAndAlter(GammaTxn tx,
DoubleFunction function) |
double |
GammaTxnDouble.getAndAlter(Txn tx,
DoubleFunction function) |
Copyright © 2020. All rights reserved.