Package io.vertigo.audit.ledger
Class LedgerTransactionBuilder
- java.lang.Object
-
- io.vertigo.audit.ledger.LedgerTransactionBuilder
-
- All Implemented Interfaces:
io.vertigo.core.lang.Builder<LedgerTransaction>
public final class LedgerTransactionBuilder extends Object implements io.vertigo.core.lang.Builder<LedgerTransaction>
- Author:
- xdurand
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LedgerTransaction
build()
LedgerTransactionBuilder
withBlockHash(String blockHash)
LedgerTransactionBuilder
withBlockNumber(BigInteger blockNumber)
LedgerTransactionBuilder
withFrom(String from)
LedgerTransactionBuilder
withHash(String hash)
LedgerTransactionBuilder
withMessage(String message)
LedgerTransactionBuilder
withNonce(BigInteger nonce)
LedgerTransactionBuilder
withTo(String to)
LedgerTransactionBuilder
withTransactionIndex(BigInteger transactionIndex)
LedgerTransactionBuilder
withValue(BigInteger value)
-
-
-
Method Detail
-
withHash
public LedgerTransactionBuilder withHash(String hash)
- Parameters:
hash
- the hash to set
-
withNonce
public LedgerTransactionBuilder withNonce(BigInteger nonce)
- Parameters:
nonce
- the nonce to set
-
withBlockHash
public LedgerTransactionBuilder withBlockHash(String blockHash)
- Parameters:
blockHash
- the blockHash to set
-
withBlockNumber
public LedgerTransactionBuilder withBlockNumber(BigInteger blockNumber)
- Parameters:
blockNumber
- the blockNumber to set
-
withTransactionIndex
public LedgerTransactionBuilder withTransactionIndex(BigInteger transactionIndex)
- Parameters:
transactionIndex
- the transactionIndex to set
-
withFrom
public LedgerTransactionBuilder withFrom(String from)
- Parameters:
from
- the from to set
-
withTo
public LedgerTransactionBuilder withTo(String to)
- Parameters:
to
- the to to set
-
withValue
public LedgerTransactionBuilder withValue(BigInteger value)
- Parameters:
value
- the value to set
-
withMessage
public LedgerTransactionBuilder withMessage(String message)
- Parameters:
message
- the message to set
-
build
public LedgerTransaction build()
- Specified by:
build
in interfaceio.vertigo.core.lang.Builder<LedgerTransaction>
-
-