public class AccountEntry extends java.lang.Object implements XdrElement
struct AccountEntry { AccountID accountID; // master public key for this account int64 balance; // in stroops SequenceNumber seqNum; // last sequence number used for this account uint32 numSubEntries; // number of sub-entries this account has // drives the reserve AccountID* inflationDest; // Account to vote for during inflation uint32 flags; // see AccountFlags string32 homeDomain; // can be used for reverse federation and memo lookup // fields used for signatures // thresholds stores unsigned bytes: [weight of master|low|medium|high] Thresholds thresholds; Signer signers<MAX_SIGNERS>; // possible signers for this account // reserved for future use union switch (int v) { case 0: void; case 1: AccountEntryExtensionV1 v1; } ext; };
Modifier and Type | Class and Description |
---|---|
static class |
AccountEntry.AccountEntryBuilder |
static class |
AccountEntry.AccountEntryExt
AccountEntryExt's original definition in the XDR file is:
|
Constructor and Description |
---|
AccountEntry() |
AccountEntry(AccountID accountID,
Int64 balance,
SequenceNumber seqNum,
Uint32 numSubEntries,
AccountID inflationDest,
Uint32 flags,
String32 homeDomain,
Thresholds thresholds,
Signer[] signers,
AccountEntry.AccountEntryExt ext) |
toXdrBase64, toXdrByteArray
public AccountEntry()
public AccountEntry(AccountID accountID, Int64 balance, SequenceNumber seqNum, Uint32 numSubEntries, AccountID inflationDest, Uint32 flags, String32 homeDomain, Thresholds thresholds, Signer[] signers, AccountEntry.AccountEntryExt ext)
public void encode(XdrDataOutputStream stream) throws java.io.IOException
encode
in interface XdrElement
java.io.IOException
public static AccountEntry decode(XdrDataInputStream stream) throws java.io.IOException
java.io.IOException
public static AccountEntry fromXdrBase64(java.lang.String xdr) throws java.io.IOException
java.io.IOException
public static AccountEntry fromXdrByteArray(byte[] xdr) throws java.io.IOException
java.io.IOException
public static AccountEntry.AccountEntryBuilder builder()
public AccountEntry.AccountEntryBuilder toBuilder()
public AccountID getAccountID()
public Int64 getBalance()
public SequenceNumber getSeqNum()
public Uint32 getNumSubEntries()
public AccountID getInflationDest()
public Uint32 getFlags()
public String32 getHomeDomain()
public Thresholds getThresholds()
public Signer[] getSigners()
public AccountEntry.AccountEntryExt getExt()
public void setAccountID(AccountID accountID)
public void setBalance(Int64 balance)
public void setSeqNum(SequenceNumber seqNum)
public void setNumSubEntries(Uint32 numSubEntries)
public void setInflationDest(AccountID inflationDest)
public void setFlags(Uint32 flags)
public void setHomeDomain(String32 homeDomain)
public void setThresholds(Thresholds thresholds)
public void setSigners(Signer[] signers)
public void setExt(AccountEntry.AccountEntryExt ext)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object