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
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionLedgerEntryChange(LedgerEntryChangeType discriminant, LedgerEntry created, LedgerEntry updated, LedgerKey removed, LedgerEntry state) -
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) voidsetState(LedgerEntry state) voidsetUpdated(LedgerEntry updated) toString()default Stringdefault 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
-