Package org.stellar.sdk.xdr
Class HotArchiveBucketEntry
java.lang.Object
org.stellar.sdk.xdr.HotArchiveBucketEntry
HotArchiveBucketEntry's original definition in the XDR file is:
union HotArchiveBucketEntry switch (HotArchiveBucketEntryType type)
{
case HOT_ARCHIVE_ARCHIVED:
LedgerEntry archivedEntry;
case HOT_ARCHIVE_LIVE:
case HOT_ARCHIVE_DELETED:
LedgerKey key;
case HOT_ARCHIVE_METAENTRY:
BucketMetadata metaEntry;
};
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionHotArchiveBucketEntry(HotArchiveBucketEntryType discriminant, LedgerEntry archivedEntry, LedgerKey key, BucketMetadata metaEntry) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static HotArchiveBucketEntrydecode(XdrDataInputStream stream) voidencode(XdrDataOutputStream stream) booleanstatic HotArchiveBucketEntryfromXdrBase64(String xdr) static HotArchiveBucketEntryfromXdrByteArray(byte[] xdr) getKey()inthashCode()voidsetArchivedEntry(LedgerEntry archivedEntry) voidsetDiscriminant(HotArchiveBucketEntryType discriminant) voidvoidsetMetaEntry(BucketMetadata metaEntry) toString()default Stringdefault byte[]
-
Constructor Details
-
HotArchiveBucketEntry
public HotArchiveBucketEntry() -
HotArchiveBucketEntry
public HotArchiveBucketEntry(HotArchiveBucketEntryType discriminant, LedgerEntry archivedEntry, LedgerKey key, BucketMetadata metaEntry)
-
-
Method Details
-
encode
- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
builder
-
toBuilder
-
getDiscriminant
-
getArchivedEntry
-
getKey
-
getMetaEntry
-
setDiscriminant
-
setArchivedEntry
-
setKey
-
setMetaEntry
-
equals
-
hashCode
public int hashCode() -
toString
-
toXdrBase64
- Throws:
IOException
-
toXdrByteArray
- Throws:
IOException
-