Package org.stellar.sdk.xdr
Class BucketMetadata
java.lang.Object
org.stellar.sdk.xdr.BucketMetadata
- All Implemented Interfaces:
XdrElement
BucketMetadata's original definition in the XDR file is:
struct BucketMetadata
{
// Indicates the protocol version used to create / merge this bucket.
uint32 ledgerVersion;
// reserved for future use
union switch (int v)
{
case 0:
void;
case 1:
BucketListType bucketListType;
}
ext;
};
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classBucketMetadataExt's original definition in the XDR file is: -
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
ConstructorsConstructorDescriptionBucketMetadata(Uint32 ledgerVersion, BucketMetadata.BucketMetadataExt ext) Creates a newBucketMetadatainstance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static BucketMetadatadecode(XdrDataInputStream stream) static BucketMetadatadecode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) Encodes this value to XDR and writes it to the provided stream.booleanstatic BucketMetadatastatic BucketMetadatafromXdrBase64(String xdr) static BucketMetadatafromXdrByteArray(byte[] xdr) getExt()Value of theextfield.Value of theledgerVersionfield.inthashCode()voidValue of theextfield.voidsetLedgerVersion(Uint32 ledgerVersion) Value of theledgerVersionfield.toJson()Serializes this value to JSON.toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
BucketMetadata
public BucketMetadata() -
BucketMetadata
Creates a newBucketMetadatainstance.- Parameters:
ledgerVersion- theledgerVersionfield valueext- theextfield value
-
-
Method Details
-
encode
Description copied from interface:XdrElementEncodes this value to XDR and writes it to the provided stream.- Specified by:
encodein interfaceXdrElement- Parameters:
stream- the destination XDR output stream- Throws:
IOException- if an I/O error occurs while writing the value
-
decode
- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
toJson
Description copied from interface:XdrElementSerializes this value to JSON.- Specified by:
toJsonin interfaceXdrElement- Returns:
- the JSON representation of this value
-
fromJson
-
builder
-
toBuilder
-
getLedgerVersion
Value of theledgerVersionfield.- Returns:
- the
ledgerVersionfield value
-
getExt
Value of theextfield.- Returns:
- the
extfield value
-
setLedgerVersion
Value of theledgerVersionfield.- Parameters:
ledgerVersion- theledgerVersionfield value
-
setExt
Value of theextfield.- Parameters:
ext- theextfield value
-
equals
-
hashCode
public int hashCode() -
toString
-