Package org.stellar.sdk.xdr
Class BucketEntry
java.lang.Object
org.stellar.sdk.xdr.BucketEntry
BucketEntry's original definition in the XDR file is:
union BucketEntry switch (BucketEntryType type) { case LIVEENTRY: case INITENTRY: LedgerEntry liveEntry; case DEADENTRY: LedgerKey deadEntry; case METAENTRY: BucketMetadata metaEntry; };
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionBucketEntry
(BucketEntryType discriminant, LedgerEntry liveEntry, LedgerKey deadEntry, BucketMetadata metaEntry) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
static BucketEntry
decode
(XdrDataInputStream stream) void
encode
(XdrDataOutputStream stream) boolean
static BucketEntry
fromXdrBase64
(String xdr) static BucketEntry
fromXdrByteArray
(byte[] xdr) int
hashCode()
void
setDeadEntry
(LedgerKey deadEntry) void
setDiscriminant
(BucketEntryType discriminant) void
setLiveEntry
(LedgerEntry liveEntry) void
setMetaEntry
(BucketMetadata metaEntry) toString()
default String
default byte[]
-
Constructor Details
-
BucketEntry
public BucketEntry() -
BucketEntry
public BucketEntry(BucketEntryType discriminant, LedgerEntry liveEntry, LedgerKey deadEntry, BucketMetadata metaEntry)
-
-
Method Details
-
encode
- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
builder
-
toBuilder
-
getDiscriminant
-
getLiveEntry
-
getDeadEntry
-
getMetaEntry
-
setDiscriminant
-
setLiveEntry
-
setDeadEntry
-
setMetaEntry
-
equals
-
hashCode
public int hashCode() -
toString
-
toXdrBase64
- Throws:
IOException
-
toXdrByteArray
- Throws:
IOException
-