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
-
Constructor Summary
ConstructorDescriptionHotArchiveBucketEntry
(HotArchiveBucketEntryType discriminant, LedgerEntry archivedEntry, LedgerKey key, BucketMetadata metaEntry) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
static HotArchiveBucketEntry
decode
(XdrDataInputStream stream) void
encode
(XdrDataOutputStream stream) boolean
static HotArchiveBucketEntry
fromXdrBase64
(String xdr) static HotArchiveBucketEntry
fromXdrByteArray
(byte[] xdr) getKey()
int
hashCode()
void
setArchivedEntry
(LedgerEntry archivedEntry) void
setDiscriminant
(HotArchiveBucketEntryType discriminant) void
void
setMetaEntry
(BucketMetadata metaEntry) toString()
default String
default 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
-