Package org.stellar.sdk.xdr
Class HotArchiveBucketEntry
java.lang.Object
org.stellar.sdk.xdr.HotArchiveBucketEntry
- All Implemented Interfaces:
XdrElement
HotArchiveBucketEntry's original definition in the XDR file is:
union HotArchiveBucketEntry switch (HotArchiveBucketEntryType type)
{
case HOT_ARCHIVE_ARCHIVED:
LedgerEntry archivedEntry;
case HOT_ARCHIVE_LIVE:
LedgerKey key;
case HOT_ARCHIVE_METAENTRY:
BucketMetadata metaEntry;
};
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
ConstructorsConstructorDescriptionHotArchiveBucketEntry(HotArchiveBucketEntryType discriminant, LedgerEntry archivedEntry, LedgerKey key, BucketMetadata metaEntry) Creates a newHotArchiveBucketEntryinstance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static HotArchiveBucketEntrydecode(XdrDataInputStream stream) static HotArchiveBucketEntrydecode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) Encodes this value to XDR and writes it to the provided stream.booleanstatic HotArchiveBucketEntrystatic HotArchiveBucketEntryfromXdrBase64(String xdr) static HotArchiveBucketEntryfromXdrByteArray(byte[] xdr) Value of thearchivedEntryfield.Value of thediscriminantfield.getKey()Value of thekeyfield.Value of themetaEntryfield.inthashCode()voidsetArchivedEntry(LedgerEntry archivedEntry) Value of thearchivedEntryfield.voidsetDiscriminant(HotArchiveBucketEntryType discriminant) Value of thediscriminantfield.voidValue of thekeyfield.voidsetMetaEntry(BucketMetadata metaEntry) Value of themetaEntryfield.toJson()Serializes this value to JSON.toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
HotArchiveBucketEntry
public HotArchiveBucketEntry() -
HotArchiveBucketEntry
public HotArchiveBucketEntry(HotArchiveBucketEntryType discriminant, LedgerEntry archivedEntry, LedgerKey key, BucketMetadata metaEntry) Creates a newHotArchiveBucketEntryinstance.- Parameters:
discriminant- thediscriminantfield valuearchivedEntry- thearchivedEntryfield valuekey- thekeyfield valuemetaEntry- themetaEntryfield 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 HotArchiveBucketEntry 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
-
getDiscriminant
Value of thediscriminantfield.- Returns:
- the
discriminantfield value
-
getArchivedEntry
Value of thearchivedEntryfield.- Returns:
- the
archivedEntryfield value
-
getKey
Value of thekeyfield.- Returns:
- the
keyfield value
-
getMetaEntry
Value of themetaEntryfield.- Returns:
- the
metaEntryfield value
-
setDiscriminant
Value of thediscriminantfield.- Parameters:
discriminant- thediscriminantfield value
-
setArchivedEntry
Value of thearchivedEntryfield.- Parameters:
archivedEntry- thearchivedEntryfield value
-
setKey
Value of thekeyfield.- Parameters:
key- thekeyfield value
-
setMetaEntry
Value of themetaEntryfield.- Parameters:
metaEntry- themetaEntryfield value
-
equals
-
hashCode
public int hashCode() -
toString
-