Package org.stellar.sdk.xdr
Class LedgerEntryChange
java.lang.Object
org.stellar.sdk.xdr.LedgerEntryChange
- All Implemented Interfaces:
XdrElement
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;
case LEDGER_ENTRY_RESTORED:
LedgerEntry restored;
};
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionLedgerEntryChange(LedgerEntryChangeType discriminant, LedgerEntry created, LedgerEntry updated, LedgerKey removed, LedgerEntry state, LedgerEntry restored) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static LedgerEntryChangedecode(XdrDataInputStream stream) voidencode(XdrDataOutputStream stream) booleanstatic LedgerEntryChangefromXdrBase64(String xdr) static LedgerEntryChangefromXdrByteArray(byte[] xdr) getState()inthashCode()voidsetCreated(LedgerEntry created) voidsetDiscriminant(LedgerEntryChangeType discriminant) voidsetRemoved(LedgerKey removed) voidsetRestored(LedgerEntry restored) voidsetState(LedgerEntry state) voidsetUpdated(LedgerEntry updated) toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
LedgerEntryChange
public LedgerEntryChange() -
LedgerEntryChange
public LedgerEntryChange(LedgerEntryChangeType discriminant, LedgerEntry created, LedgerEntry updated, LedgerKey removed, LedgerEntry state, LedgerEntry restored)
-
-
Method Details
-
encode
- Specified by:
encodein interfaceXdrElement- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
builder
-
toBuilder
-
getDiscriminant
-
getCreated
-
getUpdated
-
getRemoved
-
getState
-
getRestored
-
setDiscriminant
-
setCreated
-
setUpdated
-
setRemoved
-
setState
-
setRestored
-
equals
-
hashCode
public int hashCode() -
toString
-