Package org.stellar.sdk
Class Account
java.lang.Object
org.stellar.sdk.Account
- All Implemented Interfaces:
TransactionBuilderAccount
Represents an account in Stellar network with its sequence number. Account object is required to
build a
Transaction
.- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
@NonNull String
The account ID.Returns sequence number incremented by one, but does not increment internal counter.Returns keypair associated with this Account@NonNull Long
The sequence number of the account.int
hashCode()
void
Increments sequence number in this object by one.void
setSequenceNumber
(long seqNum) Set current sequence number on this Account.
-
Constructor Details
-
Account
Creates a newAccount
instance.- Parameters:
accountId
- The account ID.sequenceNumber
- The sequence number of the account.
-
-
Method Details
-
getKeyPair
Description copied from interface:TransactionBuilderAccount
Returns keypair associated with this Account- Specified by:
getKeyPair
in interfaceTransactionBuilderAccount
-
setSequenceNumber
public void setSequenceNumber(long seqNum) Description copied from interface:TransactionBuilderAccount
Set current sequence number on this Account.- Specified by:
setSequenceNumber
in interfaceTransactionBuilderAccount
-
getIncrementedSequenceNumber
Description copied from interface:TransactionBuilderAccount
Returns sequence number incremented by one, but does not increment internal counter.- Specified by:
getIncrementedSequenceNumber
in interfaceTransactionBuilderAccount
-
incrementSequenceNumber
public void incrementSequenceNumber()Increments sequence number in this object by one.- Specified by:
incrementSequenceNumber
in interfaceTransactionBuilderAccount
-
getAccountId
The account ID.- Specified by:
getAccountId
in interfaceTransactionBuilderAccount
-
getSequenceNumber
The sequence number of the account.- Specified by:
getSequenceNumber
in interfaceTransactionBuilderAccount
-
equals
-
hashCode
public int hashCode()
-