Package org.stellar.sdk.xdr
Class EvictionIterator
java.lang.Object
org.stellar.sdk.xdr.EvictionIterator
- All Implemented Interfaces:
XdrElement
EvictionIterator's original definition in the XDR file is:
struct EvictionIterator {
uint32 bucketListLevel;
bool isCurrBucket;
uint64 bucketFileOffset;
};
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
ConstructorsConstructorDescriptionEvictionIterator(Uint32 bucketListLevel, Boolean isCurrBucket, Uint64 bucketFileOffset) Creates a newEvictionIteratorinstance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static EvictionIteratordecode(XdrDataInputStream stream) static EvictionIteratordecode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) Encodes this value to XDR and writes it to the provided stream.booleanstatic EvictionIteratorstatic EvictionIteratorfromXdrBase64(String xdr) static EvictionIteratorfromXdrByteArray(byte[] xdr) Value of thebucketFileOffsetfield.Value of thebucketListLevelfield.Value of theisCurrBucketfield.inthashCode()voidsetBucketFileOffset(Uint64 bucketFileOffset) Value of thebucketFileOffsetfield.voidsetBucketListLevel(Uint32 bucketListLevel) Value of thebucketListLevelfield.voidsetIsCurrBucket(Boolean isCurrBucket) Value of theisCurrBucketfield.toJson()Serializes this value to JSON.toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
EvictionIterator
public EvictionIterator() -
EvictionIterator
Creates a newEvictionIteratorinstance.- Parameters:
bucketListLevel- thebucketListLevelfield valueisCurrBucket- theisCurrBucketfield valuebucketFileOffset- thebucketFileOffsetfield 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
-
getBucketListLevel
Value of thebucketListLevelfield.- Returns:
- the
bucketListLevelfield value
-
getIsCurrBucket
Value of theisCurrBucketfield.- Returns:
- the
isCurrBucketfield value
-
getBucketFileOffset
Value of thebucketFileOffsetfield.- Returns:
- the
bucketFileOffsetfield value
-
setBucketListLevel
Value of thebucketListLevelfield.- Parameters:
bucketListLevel- thebucketListLevelfield value
-
setIsCurrBucket
Value of theisCurrBucketfield.- Parameters:
isCurrBucket- theisCurrBucketfield value
-
setBucketFileOffset
Value of thebucketFileOffsetfield.- Parameters:
bucketFileOffset- thebucketFileOffsetfield value
-
equals
-
hashCode
public int hashCode() -
toString
-