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
private final class GammaStm.GammaTxnRefFactoryImpl extends java.lang.Object implements GammaTxnRefFactory
-
-
Constructor Summary
Constructors Modifier Constructor Description privateGammaTxnRefFactoryImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GammaTxnBooleannewTxnBoolean(boolean value)Creates a committed TxnBoolean.GammaTxnDoublenewTxnDouble(double value)Creates a committed TxnDouble.GammaTxnIntegernewTxnInteger(int value)Creates a committed TxnInteger.GammaTxnLongnewTxnLong(long value)Creates a committed TxnLong.<E> GammaTxnRef<E>newTxnRef(E value)Creates a committed TxnRef.
-
-
-
Method Detail
-
newTxnRef
public final <E> GammaTxnRef<E> newTxnRef(E value)
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
public final GammaTxnInteger newTxnInteger(int value)
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
public final GammaTxnBoolean newTxnBoolean(boolean value)
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
public final GammaTxnDouble newTxnDouble(double value)
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
public final GammaTxnLong newTxnLong(long value)
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.
-
-