Package org.multiverse.api.references
Interface TxnRefFactory
- All Known Subinterfaces:
GammaTxnRefFactory
- All Known Implementing Classes:
GammaStm.GammaTxnRefFactoryImpl
public interface TxnRefFactory
A Factory for creating references.
-
Method Summary
Modifier and TypeMethodDescriptionnewTxnBoolean
(boolean value) Creates a committed TxnBoolean.newTxnDouble
(double value) Creates a committed TxnDouble.newTxnInteger
(int value) Creates a committed TxnInteger.newTxnLong
(long value) Creates a committed TxnLong.<E> TxnRef<E>
newTxnRef
(E value) Creates a committed TxnRef.
-
Method Details
-
newTxnRef
Creates a committed TxnRef.- Parameters:
value
- the initial value.- Returns:
- the created TxnRef.
-
newTxnInteger
Creates a committed TxnInteger.- Parameters:
value
- the initial value.- Returns:
- the created TxnInteger.
-
newTxnBoolean
Creates a committed TxnBoolean.- Parameters:
value
- the initial value.- Returns:
- the created TxnBoolean.
-
newTxnDouble
Creates a committed TxnDouble.- Parameters:
value
- the initial value.- Returns:
- the created TxnDouble.
-
newTxnLong
Creates a committed TxnLong.- Parameters:
value
- the initial value.- Returns:
- the created TxnLong.
-