public class LedgerHeaderHistoryEntry extends java.lang.Object implements XdrElement
struct LedgerHeaderHistoryEntry { Hash hash; LedgerHeader header; // reserved for future use union switch (int v) { case 0: void; } ext; };
Modifier and Type | Class and Description |
---|---|
static class |
LedgerHeaderHistoryEntry.LedgerHeaderHistoryEntryBuilder |
static class |
LedgerHeaderHistoryEntry.LedgerHeaderHistoryEntryExt
LedgerHeaderHistoryEntryExt's original definition in the XDR file is:
|
Constructor and Description |
---|
LedgerHeaderHistoryEntry() |
LedgerHeaderHistoryEntry(Hash hash,
LedgerHeader header,
LedgerHeaderHistoryEntry.LedgerHeaderHistoryEntryExt ext) |
Modifier and Type | Method and Description |
---|---|
static LedgerHeaderHistoryEntry.LedgerHeaderHistoryEntryBuilder |
builder() |
static LedgerHeaderHistoryEntry |
decode(XdrDataInputStream stream) |
void |
encode(XdrDataOutputStream stream) |
boolean |
equals(java.lang.Object o) |
static LedgerHeaderHistoryEntry |
fromXdrBase64(java.lang.String xdr) |
static LedgerHeaderHistoryEntry |
fromXdrByteArray(byte[] xdr) |
LedgerHeaderHistoryEntry.LedgerHeaderHistoryEntryExt |
getExt() |
Hash |
getHash() |
LedgerHeader |
getHeader() |
int |
hashCode() |
void |
setExt(LedgerHeaderHistoryEntry.LedgerHeaderHistoryEntryExt ext) |
void |
setHash(Hash hash) |
void |
setHeader(LedgerHeader header) |
LedgerHeaderHistoryEntry.LedgerHeaderHistoryEntryBuilder |
toBuilder() |
java.lang.String |
toString() |
toXdrBase64, toXdrByteArray
public LedgerHeaderHistoryEntry()
public LedgerHeaderHistoryEntry(Hash hash, LedgerHeader header, LedgerHeaderHistoryEntry.LedgerHeaderHistoryEntryExt ext)
public void encode(XdrDataOutputStream stream) throws java.io.IOException
encode
in interface XdrElement
java.io.IOException
public static LedgerHeaderHistoryEntry decode(XdrDataInputStream stream) throws java.io.IOException
java.io.IOException
public static LedgerHeaderHistoryEntry fromXdrBase64(java.lang.String xdr) throws java.io.IOException
java.io.IOException
public static LedgerHeaderHistoryEntry fromXdrByteArray(byte[] xdr) throws java.io.IOException
java.io.IOException
public static LedgerHeaderHistoryEntry.LedgerHeaderHistoryEntryBuilder builder()
public LedgerHeaderHistoryEntry.LedgerHeaderHistoryEntryBuilder toBuilder()
public Hash getHash()
public LedgerHeader getHeader()
public LedgerHeaderHistoryEntry.LedgerHeaderHistoryEntryExt getExt()
public void setHash(Hash hash)
public void setHeader(LedgerHeader header)
public void setExt(LedgerHeaderHistoryEntry.LedgerHeaderHistoryEntryExt ext)
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