Package org.stellar.sdk.xdr
Class LedgerEntryChange
java.lang.Object
org.stellar.sdk.xdr.LedgerEntryChange
LedgerEntryChange's original definition in the XDR file is:
union LedgerEntryChange switch (LedgerEntryChangeType type) { case LEDGER_ENTRY_CREATED: LedgerEntry created; case LEDGER_ENTRY_UPDATED: LedgerEntry updated; case LEDGER_ENTRY_REMOVED: LedgerKey removed; case LEDGER_ENTRY_STATE: LedgerEntry state; };
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionLedgerEntryChange
(LedgerEntryChangeType discriminant, LedgerEntry created, LedgerEntry updated, LedgerKey removed, LedgerEntry state) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
static LedgerEntryChange
decode
(XdrDataInputStream stream) void
encode
(XdrDataOutputStream stream) boolean
static LedgerEntryChange
fromXdrBase64
(String xdr) static LedgerEntryChange
fromXdrByteArray
(byte[] xdr) getState()
int
hashCode()
void
setCreated
(LedgerEntry created) void
setDiscriminant
(LedgerEntryChangeType discriminant) void
setRemoved
(LedgerKey removed) void
setState
(LedgerEntry state) void
setUpdated
(LedgerEntry updated) toString()
default String
default byte[]
-
Constructor Details
-
LedgerEntryChange
public LedgerEntryChange() -
LedgerEntryChange
public LedgerEntryChange(LedgerEntryChangeType discriminant, LedgerEntry created, LedgerEntry updated, LedgerKey removed, LedgerEntry state)
-
-
Method Details
-
encode
- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
builder
-
toBuilder
-
getDiscriminant
-
getCreated
-
getUpdated
-
getRemoved
-
getState
-
setDiscriminant
-
setCreated
-
setUpdated
-
setRemoved
-
setState
-
equals
-
hashCode
public int hashCode() -
toString
-
toXdrBase64
- Throws:
IOException
-
toXdrByteArray
- Throws:
IOException
-