public class LedgerEntryChange extends java.lang.Object implements XdrElement
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; };
Modifier and Type | Class and Description |
---|---|
static class |
LedgerEntryChange.LedgerEntryChangeBuilder |
Constructor and Description |
---|
LedgerEntryChange() |
LedgerEntryChange(LedgerEntryChangeType discriminant,
LedgerEntry created,
LedgerEntry updated,
LedgerKey removed,
LedgerEntry state,
LedgerEntry restored) |
Modifier and Type | Method and Description |
---|---|
static LedgerEntryChange.LedgerEntryChangeBuilder |
builder() |
static LedgerEntryChange |
decode(XdrDataInputStream stream) |
void |
encode(XdrDataOutputStream stream) |
boolean |
equals(java.lang.Object o) |
static LedgerEntryChange |
fromXdrBase64(java.lang.String xdr) |
static LedgerEntryChange |
fromXdrByteArray(byte[] xdr) |
LedgerEntry |
getCreated() |
LedgerEntryChangeType |
getDiscriminant() |
LedgerKey |
getRemoved() |
LedgerEntry |
getRestored() |
LedgerEntry |
getState() |
LedgerEntry |
getUpdated() |
int |
hashCode() |
void |
setCreated(LedgerEntry created) |
void |
setDiscriminant(LedgerEntryChangeType discriminant) |
void |
setRemoved(LedgerKey removed) |
void |
setRestored(LedgerEntry restored) |
void |
setState(LedgerEntry state) |
void |
setUpdated(LedgerEntry updated) |
LedgerEntryChange.LedgerEntryChangeBuilder |
toBuilder() |
java.lang.String |
toString() |
toXdrBase64, toXdrByteArray
public LedgerEntryChange()
public LedgerEntryChange(LedgerEntryChangeType discriminant, LedgerEntry created, LedgerEntry updated, LedgerKey removed, LedgerEntry state, LedgerEntry restored)
public void encode(XdrDataOutputStream stream) throws java.io.IOException
encode
in interface XdrElement
java.io.IOException
public static LedgerEntryChange decode(XdrDataInputStream stream) throws java.io.IOException
java.io.IOException
public static LedgerEntryChange fromXdrBase64(java.lang.String xdr) throws java.io.IOException
java.io.IOException
public static LedgerEntryChange fromXdrByteArray(byte[] xdr) throws java.io.IOException
java.io.IOException
public static LedgerEntryChange.LedgerEntryChangeBuilder builder()
public LedgerEntryChange.LedgerEntryChangeBuilder toBuilder()
public LedgerEntryChangeType getDiscriminant()
public LedgerEntry getCreated()
public LedgerEntry getUpdated()
public LedgerKey getRemoved()
public LedgerEntry getState()
public LedgerEntry getRestored()
public void setDiscriminant(LedgerEntryChangeType discriminant)
public void setCreated(LedgerEntry created)
public void setUpdated(LedgerEntry updated)
public void setRemoved(LedgerKey removed)
public void setState(LedgerEntry state)
public void setRestored(LedgerEntry restored)
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