Package org.stellar.sdk.xdr
Class LedgerHeaderHistoryEntry
java.lang.Object
org.stellar.sdk.xdr.LedgerHeaderHistoryEntry
- All Implemented Interfaces:
XdrElement
LedgerHeaderHistoryEntry's original definition in the XDR file is:
struct LedgerHeaderHistoryEntry
{
Hash hash;
LedgerHeader header;
// reserved for future use
union switch (int v)
{
case 0:
void;
}
ext;
};
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classLedgerHeaderHistoryEntryExt's original definition in the XDR file is: -
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
ConstructorsConstructorDescriptionLedgerHeaderHistoryEntry(Hash hash, LedgerHeader header, LedgerHeaderHistoryEntry.LedgerHeaderHistoryEntryExt ext) Creates a newLedgerHeaderHistoryEntryinstance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static LedgerHeaderHistoryEntrydecode(XdrDataInputStream stream) static LedgerHeaderHistoryEntrydecode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) Encodes this value to XDR and writes it to the provided stream.booleanstatic LedgerHeaderHistoryEntrystatic LedgerHeaderHistoryEntryfromXdrBase64(String xdr) static LedgerHeaderHistoryEntryfromXdrByteArray(byte[] xdr) getExt()Value of theextfield.getHash()Value of thehashfield.Value of theheaderfield.inthashCode()voidValue of theextfield.voidValue of thehashfield.voidsetHeader(LedgerHeader header) Value of theheaderfield.toJson()Serializes this value to JSON.toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
LedgerHeaderHistoryEntry
public LedgerHeaderHistoryEntry() -
LedgerHeaderHistoryEntry
public LedgerHeaderHistoryEntry(Hash hash, LedgerHeader header, LedgerHeaderHistoryEntry.LedgerHeaderHistoryEntryExt ext) Creates a newLedgerHeaderHistoryEntryinstance.- Parameters:
hash- thehashfield valueheader- theheaderfield valueext- theextfield value
-
-
Method Details
-
encode
Description copied from interface:XdrElementEncodes this value to XDR and writes it to the provided stream.- Specified by:
encodein interfaceXdrElement- Parameters:
stream- the destination XDR output stream- Throws:
IOException- if an I/O error occurs while writing the value
-
decode
public static LedgerHeaderHistoryEntry decode(XdrDataInputStream stream, int maxDepth) throws IOException - Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
toJson
Description copied from interface:XdrElementSerializes this value to JSON.- Specified by:
toJsonin interfaceXdrElement- Returns:
- the JSON representation of this value
-
fromJson
-
builder
-
toBuilder
-
getHash
Value of thehashfield.- Returns:
- the
hashfield value
-
getHeader
Value of theheaderfield.- Returns:
- the
headerfield value
-
getExt
Value of theextfield.- Returns:
- the
extfield value
-
setHash
Value of thehashfield.- Parameters:
hash- thehashfield value
-
setHeader
Value of theheaderfield.- Parameters:
header- theheaderfield value
-
setExt
Value of theextfield.- Parameters:
ext- theextfield value
-
equals
-
hashCode
public int hashCode() -
toString
-