Package com.exonum.binding.blockchain
Class TransactionLocation
- java.lang.Object
-
- com.exonum.binding.blockchain.TransactionLocation
-
public abstract class TransactionLocation extends java.lang.Object
Transaction position in the blockchain. Enumeration begins from 0.
-
-
Constructor Summary
Constructors Constructor Description TransactionLocation()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract long
getHeight()
Height of the block where the transaction was committed.abstract long
getIndexInBlock()
Zero-based position of this transaction in the block.static com.google.gson.TypeAdapter<TransactionLocation>
typeAdapter(com.google.gson.Gson gson)
Provides a Gson type adapter for this class.static TransactionLocation
valueOf(long height, long indexInBlock)
-
-
-
Method Detail
-
valueOf
public static TransactionLocation valueOf(long height, long indexInBlock)
-
getHeight
public abstract long getHeight()
Height of the block where the transaction was committed.
-
getIndexInBlock
public abstract long getIndexInBlock()
Zero-based position of this transaction in the block. Transactions executed in the ascending order of these indices.
-
typeAdapter
public static com.google.gson.TypeAdapter<TransactionLocation> typeAdapter(com.google.gson.Gson gson)
Provides a Gson type adapter for this class.- See Also:
TransactionLocationAdapterFactory
-
-