public class Account extends java.lang.Object implements TransactionBuilderAccount
Transaction
.TransactionBuilder
Constructor and Description |
---|
Account(@NonNull java.lang.String accountId,
@NonNull java.lang.Long sequenceNumber)
Creates a new
Account instance. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
@NonNull java.lang.String |
getAccountId()
The account ID.
|
java.lang.Long |
getIncrementedSequenceNumber()
Returns sequence number incremented by one, but does not increment internal counter.
|
KeyPair |
getKeyPair()
Returns keypair associated with this Account
|
@NonNull java.lang.Long |
getSequenceNumber()
The sequence number of the account.
|
int |
hashCode() |
void |
incrementSequenceNumber()
Increments sequence number in this object by one.
|
void |
setSequenceNumber(long seqNum)
Set current sequence number on this Account.
|
public Account(@NonNull @NonNull java.lang.String accountId, @NonNull @NonNull java.lang.Long sequenceNumber)
Account
instance.accountId
- The account ID.sequenceNumber
- The sequence number of the account.public KeyPair getKeyPair()
TransactionBuilderAccount
getKeyPair
in interface TransactionBuilderAccount
public void setSequenceNumber(long seqNum)
TransactionBuilderAccount
setSequenceNumber
in interface TransactionBuilderAccount
public java.lang.Long getIncrementedSequenceNumber()
TransactionBuilderAccount
getIncrementedSequenceNumber
in interface TransactionBuilderAccount
public void incrementSequenceNumber()
incrementSequenceNumber
in interface TransactionBuilderAccount
@NonNull public @NonNull java.lang.String getAccountId()
getAccountId
in interface TransactionBuilderAccount
@NonNull public @NonNull java.lang.Long getSequenceNumber()
getSequenceNumber
in interface TransactionBuilderAccount
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object