Package | Description |
---|---|
org.multiverse.api.functions | |
org.multiverse.api.references | |
org.multiverse.stms.gamma.transactionalobjects |
Modifier and Type | Method and Description |
---|---|
static BooleanFunction |
Functions.identityBooleanFunction()
Returns a
BooleanFunction that returns the argument. |
static BooleanFunction |
Functions.inverseBooleanFunction()
Returns a
BooleanFunction that inverts the argument. |
Modifier and Type | Method and Description |
---|---|
boolean |
TxnBoolean.alterAndGet(BooleanFunction function)
Alters the value stored in this Ref using the provided function and returns the result.
|
boolean |
TxnBoolean.alterAndGet(Txn txn,
BooleanFunction function)
Alters the value stored in this Ref using the provided function and lifting on the provided txn.
|
boolean |
TxnBoolean.atomicAlterAndGet(BooleanFunction function)
Atomically applies the function to the current value in this ref and returns the new value.
|
boolean |
TxnBoolean.atomicGetAndAlter(BooleanFunction function)
Atomically applies the function to alter the value stored in this ref and returns the old value.
|
void |
TxnBoolean.commute(BooleanFunction function)
Applies the function on the ref in a commuting manner.
|
void |
TxnBoolean.commute(Txn txn,
BooleanFunction function)
Applies the function on the ref in a commuting manner.
|
boolean |
TxnBoolean.getAndAlter(BooleanFunction function)
Alters the value stored in this Ref using the provided function amd returns the old value.
|
boolean |
TxnBoolean.getAndAlter(Txn txn,
BooleanFunction 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 |
---|---|
boolean |
GammaTxnBoolean.alter(GammaTxn tx,
BooleanFunction function,
boolean returnOld) |
boolean |
GammaTxnBoolean.alterAndGet(BooleanFunction function) |
boolean |
GammaTxnBoolean.alterAndGet(GammaTxn tx,
BooleanFunction function) |
boolean |
GammaTxnBoolean.alterAndGet(Txn tx,
BooleanFunction function) |
boolean |
GammaTxnBoolean.atomicAlterAndGet(BooleanFunction function) |
boolean |
GammaTxnBoolean.atomicGetAndAlter(BooleanFunction function) |
void |
GammaTxnBoolean.commute(BooleanFunction function) |
void |
GammaTxnBoolean.commute(GammaTxn tx,
BooleanFunction function) |
void |
GammaTxnBoolean.commute(Txn tx,
BooleanFunction function) |
boolean |
GammaTxnBoolean.getAndAlter(BooleanFunction function) |
boolean |
GammaTxnBoolean.getAndAlter(GammaTxn tx,
BooleanFunction function) |
boolean |
GammaTxnBoolean.getAndAlter(Txn tx,
BooleanFunction function) |
Copyright © 2020. All rights reserved.