public class HotArchiveBucketEntry extends java.lang.Object implements XdrElement
union HotArchiveBucketEntry switch (HotArchiveBucketEntryType type) { case HOT_ARCHIVE_ARCHIVED: LedgerEntry archivedEntry; case HOT_ARCHIVE_LIVE: LedgerKey key; case HOT_ARCHIVE_METAENTRY: BucketMetadata metaEntry; };
Modifier and Type | Class and Description |
---|---|
static class |
HotArchiveBucketEntry.HotArchiveBucketEntryBuilder |
Constructor and Description |
---|
HotArchiveBucketEntry() |
HotArchiveBucketEntry(HotArchiveBucketEntryType discriminant,
LedgerEntry archivedEntry,
LedgerKey key,
BucketMetadata metaEntry) |
Modifier and Type | Method and Description |
---|---|
static HotArchiveBucketEntry.HotArchiveBucketEntryBuilder |
builder() |
static HotArchiveBucketEntry |
decode(XdrDataInputStream stream) |
void |
encode(XdrDataOutputStream stream) |
boolean |
equals(java.lang.Object o) |
static HotArchiveBucketEntry |
fromXdrBase64(java.lang.String xdr) |
static HotArchiveBucketEntry |
fromXdrByteArray(byte[] xdr) |
LedgerEntry |
getArchivedEntry() |
HotArchiveBucketEntryType |
getDiscriminant() |
LedgerKey |
getKey() |
BucketMetadata |
getMetaEntry() |
int |
hashCode() |
void |
setArchivedEntry(LedgerEntry archivedEntry) |
void |
setDiscriminant(HotArchiveBucketEntryType discriminant) |
void |
setKey(LedgerKey key) |
void |
setMetaEntry(BucketMetadata metaEntry) |
HotArchiveBucketEntry.HotArchiveBucketEntryBuilder |
toBuilder() |
java.lang.String |
toString() |
toXdrBase64, toXdrByteArray
public HotArchiveBucketEntry()
public HotArchiveBucketEntry(HotArchiveBucketEntryType discriminant, LedgerEntry archivedEntry, LedgerKey key, BucketMetadata metaEntry)
public void encode(XdrDataOutputStream stream) throws java.io.IOException
encode
in interface XdrElement
java.io.IOException
public static HotArchiveBucketEntry decode(XdrDataInputStream stream) throws java.io.IOException
java.io.IOException
public static HotArchiveBucketEntry fromXdrBase64(java.lang.String xdr) throws java.io.IOException
java.io.IOException
public static HotArchiveBucketEntry fromXdrByteArray(byte[] xdr) throws java.io.IOException
java.io.IOException
public static HotArchiveBucketEntry.HotArchiveBucketEntryBuilder builder()
public HotArchiveBucketEntry.HotArchiveBucketEntryBuilder toBuilder()
public HotArchiveBucketEntryType getDiscriminant()
public LedgerEntry getArchivedEntry()
public LedgerKey getKey()
public BucketMetadata getMetaEntry()
public void setDiscriminant(HotArchiveBucketEntryType discriminant)
public void setArchivedEntry(LedgerEntry archivedEntry)
public void setKey(LedgerKey key)
public void setMetaEntry(BucketMetadata metaEntry)
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