Package org.multiverse.stms.gamma
Class GammaStm.GammaTxnRefFactoryImpl
java.lang.Object
org.multiverse.stms.gamma.GammaStm.GammaTxnRefFactoryImpl
- All Implemented Interfaces:
TxnRefFactory
,GammaTxnRefFactory
- Enclosing class:
- GammaStm
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal GammaTxnBoolean
newTxnBoolean
(boolean value) Creates a committed TxnBoolean.final GammaTxnDouble
newTxnDouble
(double value) Creates a committed TxnDouble.final GammaTxnInteger
newTxnInteger
(int value) Creates a committed TxnInteger.final GammaTxnLong
newTxnLong
(long value) Creates a committed TxnLong.final <E> GammaTxnRef<E>
newTxnRef
(E value) Creates a committed TxnRef.
-
Constructor Details
-
GammaTxnRefFactoryImpl
private GammaTxnRefFactoryImpl()
-
-
Method Details
-
newTxnRef
Description copied from interface:TxnRefFactory
Creates a committed TxnRef.- Specified by:
newTxnRef
in interfaceGammaTxnRefFactory
- Specified by:
newTxnRef
in interfaceTxnRefFactory
- Parameters:
value
- the initial value.- Returns:
- the created TxnRef.
-
newTxnInteger
Description copied from interface:TxnRefFactory
Creates a committed TxnInteger.- Specified by:
newTxnInteger
in interfaceGammaTxnRefFactory
- Specified by:
newTxnInteger
in interfaceTxnRefFactory
- Parameters:
value
- the initial value.- Returns:
- the created TxnInteger.
-
newTxnBoolean
Description copied from interface:TxnRefFactory
Creates a committed TxnBoolean.- Specified by:
newTxnBoolean
in interfaceGammaTxnRefFactory
- Specified by:
newTxnBoolean
in interfaceTxnRefFactory
- Parameters:
value
- the initial value.- Returns:
- the created TxnBoolean.
-
newTxnDouble
Description copied from interface:TxnRefFactory
Creates a committed TxnDouble.- Specified by:
newTxnDouble
in interfaceGammaTxnRefFactory
- Specified by:
newTxnDouble
in interfaceTxnRefFactory
- Parameters:
value
- the initial value.- Returns:
- the created TxnDouble.
-
newTxnLong
Description copied from interface:TxnRefFactory
Creates a committed TxnLong.- Specified by:
newTxnLong
in interfaceGammaTxnRefFactory
- Specified by:
newTxnLong
in interfaceTxnRefFactory
- Parameters:
value
- the initial value.- Returns:
- the created TxnLong.
-