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 private
GammaTxnRefFactoryImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GammaTxnBoolean
newTxnBoolean(boolean value)
Creates a committed TxnBoolean.GammaTxnDouble
newTxnDouble(double value)
Creates a committed TxnDouble.GammaTxnInteger
newTxnInteger(int value)
Creates a committed TxnInteger.GammaTxnLong
newTxnLong(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: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
public final GammaTxnInteger newTxnInteger(int value)
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
public final GammaTxnBoolean newTxnBoolean(boolean value)
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
public final GammaTxnDouble newTxnDouble(double value)
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
public final GammaTxnLong newTxnLong(long value)
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.
-
-