Package org.stellar.sdk.xdr
Class AccountEntryExtensionV3
java.lang.Object
org.stellar.sdk.xdr.AccountEntryExtensionV3
- All Implemented Interfaces:
XdrElement
AccountEntryExtensionV3's original definition in the XDR file is:
struct AccountEntryExtensionV3
{
// We can use this to add more fields, or because it is first, to
// change AccountEntryExtensionV3 into a union.
ExtensionPoint ext;
// Ledger number at which `seqNum` took on its present value.
uint32 seqLedger;
// Time at which `seqNum` took on its present value.
TimePoint seqTime;
};
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
ConstructorsConstructorDescriptionAccountEntryExtensionV3(ExtensionPoint ext, Uint32 seqLedger, TimePoint seqTime) Creates a newAccountEntryExtensionV3instance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static AccountEntryExtensionV3decode(XdrDataInputStream stream) static AccountEntryExtensionV3decode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) Encodes this value to XDR and writes it to the provided stream.booleanstatic AccountEntryExtensionV3static AccountEntryExtensionV3fromXdrBase64(String xdr) static AccountEntryExtensionV3fromXdrByteArray(byte[] xdr) getExt()Value of theextfield.Value of theseqLedgerfield.Value of theseqTimefield.inthashCode()voidsetExt(ExtensionPoint ext) Value of theextfield.voidsetSeqLedger(Uint32 seqLedger) Value of theseqLedgerfield.voidsetSeqTime(TimePoint seqTime) Value of theseqTimefield.toJson()Serializes this value to JSON.toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
AccountEntryExtensionV3
public AccountEntryExtensionV3() -
AccountEntryExtensionV3
Creates a newAccountEntryExtensionV3instance.- Parameters:
ext- theextfield valueseqLedger- theseqLedgerfield valueseqTime- theseqTimefield value
-
-
Method Details
-
encode
Description copied from interface:XdrElementEncodes this value to XDR and writes it to the provided stream.- Specified by:
encodein interfaceXdrElement- Parameters:
stream- the destination XDR output stream- Throws:
IOException- if an I/O error occurs while writing the value
-
decode
public static AccountEntryExtensionV3 decode(XdrDataInputStream stream, int maxDepth) throws IOException - Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
toJson
Description copied from interface:XdrElementSerializes this value to JSON.- Specified by:
toJsonin interfaceXdrElement- Returns:
- the JSON representation of this value
-
fromJson
-
builder
-
toBuilder
-
getExt
Value of theextfield.- Returns:
- the
extfield value
-
getSeqLedger
Value of theseqLedgerfield.- Returns:
- the
seqLedgerfield value
-
getSeqTime
Value of theseqTimefield.- Returns:
- the
seqTimefield value
-
setExt
Value of theextfield.- Parameters:
ext- theextfield value
-
setSeqLedger
Value of theseqLedgerfield.- Parameters:
seqLedger- theseqLedgerfield value
-
setSeqTime
Value of theseqTimefield.- Parameters:
seqTime- theseqTimefield value
-
equals
-
hashCode
public int hashCode() -
toString
-