Package org.stellar.sdk.xdr
Class ClaimableBalanceEntry
java.lang.Object
org.stellar.sdk.xdr.ClaimableBalanceEntry
- All Implemented Interfaces:
XdrElement
ClaimableBalanceEntry's original definition in the XDR file is:
struct ClaimableBalanceEntry
{
// Unique identifier for this ClaimableBalanceEntry
ClaimableBalanceID balanceID;
// List of claimants with associated predicate
Claimant claimants<10>;
// Any asset including native
Asset asset;
// Amount of asset
int64 amount;
// reserved for future use
union switch (int v)
{
case 0:
void;
case 1:
ClaimableBalanceEntryExtensionV1 v1;
}
ext;
};
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classClaimableBalanceEntryExt's original definition in the XDR file is: -
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
ConstructorsConstructorDescriptionClaimableBalanceEntry(ClaimableBalanceID balanceID, Claimant[] claimants, Asset asset, Int64 amount, ClaimableBalanceEntry.ClaimableBalanceEntryExt ext) Creates a newClaimableBalanceEntryinstance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static ClaimableBalanceEntrydecode(XdrDataInputStream stream) static ClaimableBalanceEntrydecode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) Encodes this value to XDR and writes it to the provided stream.booleanstatic ClaimableBalanceEntrystatic ClaimableBalanceEntryfromXdrBase64(String xdr) static ClaimableBalanceEntryfromXdrByteArray(byte[] xdr) Value of theamountfield.getAsset()Value of theassetfield.Value of thebalanceIDfield.Claimant[]Value of theclaimantsfield.getExt()Value of theextfield.inthashCode()voidValue of theamountfield.voidValue of theassetfield.voidsetBalanceID(ClaimableBalanceID balanceID) Value of thebalanceIDfield.voidsetClaimants(Claimant[] claimants) Value of theclaimantsfield.voidValue of theextfield.toJson()Serializes this value to JSON.toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
ClaimableBalanceEntry
public ClaimableBalanceEntry() -
ClaimableBalanceEntry
public ClaimableBalanceEntry(ClaimableBalanceID balanceID, Claimant[] claimants, Asset asset, Int64 amount, ClaimableBalanceEntry.ClaimableBalanceEntryExt ext) Creates a newClaimableBalanceEntryinstance.- Parameters:
balanceID- thebalanceIDfield valueclaimants- theclaimantsfield valueasset- theassetfield valueamount- theamountfield 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
public static ClaimableBalanceEntry decode(XdrDataInputStream stream, int maxDepth) throws IOException - 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
-
getBalanceID
Value of thebalanceIDfield.- Returns:
- the
balanceIDfield value
-
getClaimants
Value of theclaimantsfield.- Returns:
- the
claimantsfield value
-
getAsset
Value of theassetfield.- Returns:
- the
assetfield value
-
getAmount
Value of theamountfield.- Returns:
- the
amountfield value
-
getExt
Value of theextfield.- Returns:
- the
extfield value
-
setBalanceID
Value of thebalanceIDfield.- Parameters:
balanceID- thebalanceIDfield value
-
setClaimants
Value of theclaimantsfield.- Parameters:
claimants- theclaimantsfield value
-
setAsset
Value of theassetfield.- Parameters:
asset- theassetfield value
-
setAmount
Value of theamountfield.- Parameters:
amount- theamountfield value
-
setExt
Value of theextfield.- Parameters:
ext- theextfield value
-
equals
-
hashCode
public int hashCode() -
toString
-