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 GammaTxnBooleannewTxnBoolean(boolean value) Creates a committed TxnBoolean.final GammaTxnDoublenewTxnDouble(double value) Creates a committed TxnDouble.final GammaTxnIntegernewTxnInteger(int value) Creates a committed TxnInteger.final GammaTxnLongnewTxnLong(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:TxnRefFactoryCreates a committed TxnRef.- Specified by:
newTxnRefin interfaceGammaTxnRefFactory- Specified by:
newTxnRefin interfaceTxnRefFactory- Parameters:
value- the initial value.- Returns:
- the created TxnRef.
-
newTxnInteger
Description copied from interface:TxnRefFactoryCreates a committed TxnInteger.- Specified by:
newTxnIntegerin interfaceGammaTxnRefFactory- Specified by:
newTxnIntegerin interfaceTxnRefFactory- Parameters:
value- the initial value.- Returns:
- the created TxnInteger.
-
newTxnBoolean
Description copied from interface:TxnRefFactoryCreates a committed TxnBoolean.- Specified by:
newTxnBooleanin interfaceGammaTxnRefFactory- Specified by:
newTxnBooleanin interfaceTxnRefFactory- Parameters:
value- the initial value.- Returns:
- the created TxnBoolean.
-
newTxnDouble
Description copied from interface:TxnRefFactoryCreates a committed TxnDouble.- Specified by:
newTxnDoublein interfaceGammaTxnRefFactory- Specified by:
newTxnDoublein interfaceTxnRefFactory- Parameters:
value- the initial value.- Returns:
- the created TxnDouble.
-
newTxnLong
Description copied from interface:TxnRefFactoryCreates a committed TxnLong.- Specified by:
newTxnLongin interfaceGammaTxnRefFactory- Specified by:
newTxnLongin interfaceTxnRefFactory- Parameters:
value- the initial value.- Returns:
- the created TxnLong.
-