Package org.stellar.sdk.xdr
Class CreateClaimableBalanceOp
java.lang.Object
org.stellar.sdk.xdr.CreateClaimableBalanceOp
- All Implemented Interfaces:
XdrElement
CreateClaimableBalanceOp's original definition in the XDR file is:
struct CreateClaimableBalanceOp
{
Asset asset;
int64 amount;
Claimant claimants<10>;
};
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
ConstructorsConstructorDescriptionCreateClaimableBalanceOp(Asset asset, Int64 amount, Claimant[] claimants) Creates a newCreateClaimableBalanceOpinstance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static CreateClaimableBalanceOpdecode(XdrDataInputStream stream) static CreateClaimableBalanceOpdecode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) Encodes this value to XDR and writes it to the provided stream.booleanstatic CreateClaimableBalanceOpstatic CreateClaimableBalanceOpfromXdrBase64(String xdr) static CreateClaimableBalanceOpfromXdrByteArray(byte[] xdr) Value of theamountfield.getAsset()Value of theassetfield.Claimant[]Value of theclaimantsfield.inthashCode()voidValue of theamountfield.voidValue of theassetfield.voidsetClaimants(Claimant[] claimants) Value of theclaimantsfield.toJson()Serializes this value to JSON.toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
CreateClaimableBalanceOp
public CreateClaimableBalanceOp() -
CreateClaimableBalanceOp
Creates a newCreateClaimableBalanceOpinstance.- Parameters:
asset- theassetfield valueamount- theamountfield valueclaimants- theclaimantsfield 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 CreateClaimableBalanceOp 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
-
getAsset
Value of theassetfield.- Returns:
- the
assetfield value
-
getAmount
Value of theamountfield.- Returns:
- the
amountfield value
-
getClaimants
Value of theclaimantsfield.- Returns:
- the
claimantsfield value
-
setAsset
Value of theassetfield.- Parameters:
asset- theassetfield value
-
setAmount
Value of theamountfield.- Parameters:
amount- theamountfield value
-
setClaimants
Value of theclaimantsfield.- Parameters:
claimants- theclaimantsfield value
-
equals
-
hashCode
public int hashCode() -
toString
-