Package org.stellar.sdk.xdr
Class ColdArchiveBucketEntry
java.lang.Object
org.stellar.sdk.xdr.ColdArchiveBucketEntry
ColdArchiveBucketEntry's original definition in the XDR file is:
union ColdArchiveBucketEntry switch (ColdArchiveBucketEntryType type) { case COLD_ARCHIVE_METAENTRY: BucketMetadata metaEntry; case COLD_ARCHIVE_ARCHIVED_LEAF: ColdArchiveArchivedLeaf archivedLeaf; case COLD_ARCHIVE_DELETED_LEAF: ColdArchiveDeletedLeaf deletedLeaf; case COLD_ARCHIVE_BOUNDARY_LEAF: ColdArchiveBoundaryLeaf boundaryLeaf; case COLD_ARCHIVE_HASH: ColdArchiveHashEntry hashEntry; };
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
-
Constructor Summary
ConstructorDescriptionColdArchiveBucketEntry
(ColdArchiveBucketEntryType discriminant, BucketMetadata metaEntry, ColdArchiveArchivedLeaf archivedLeaf, ColdArchiveDeletedLeaf deletedLeaf, ColdArchiveBoundaryLeaf boundaryLeaf, ColdArchiveHashEntry hashEntry) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
static ColdArchiveBucketEntry
decode
(XdrDataInputStream stream) void
encode
(XdrDataOutputStream stream) boolean
static ColdArchiveBucketEntry
fromXdrBase64
(String xdr) static ColdArchiveBucketEntry
fromXdrByteArray
(byte[] xdr) int
hashCode()
void
setArchivedLeaf
(ColdArchiveArchivedLeaf archivedLeaf) void
setBoundaryLeaf
(ColdArchiveBoundaryLeaf boundaryLeaf) void
setDeletedLeaf
(ColdArchiveDeletedLeaf deletedLeaf) void
setDiscriminant
(ColdArchiveBucketEntryType discriminant) void
setHashEntry
(ColdArchiveHashEntry hashEntry) void
setMetaEntry
(BucketMetadata metaEntry) toString()
default String
default byte[]
-
Constructor Details
-
ColdArchiveBucketEntry
public ColdArchiveBucketEntry() -
ColdArchiveBucketEntry
public ColdArchiveBucketEntry(ColdArchiveBucketEntryType discriminant, BucketMetadata metaEntry, ColdArchiveArchivedLeaf archivedLeaf, ColdArchiveDeletedLeaf deletedLeaf, ColdArchiveBoundaryLeaf boundaryLeaf, ColdArchiveHashEntry hashEntry)
-
-
Method Details
-
encode
- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
builder
-
toBuilder
-
getDiscriminant
-
getMetaEntry
-
getArchivedLeaf
-
getDeletedLeaf
-
getBoundaryLeaf
-
getHashEntry
-
setDiscriminant
-
setMetaEntry
-
setArchivedLeaf
-
setDeletedLeaf
-
setBoundaryLeaf
-
setHashEntry
-
equals
-
hashCode
public int hashCode() -
toString
-
toXdrBase64
- Throws:
IOException
-
toXdrByteArray
- Throws:
IOException
-