Package org.stellar.sdk.xdr
Class ClawbackOp
java.lang.Object
org.stellar.sdk.xdr.ClawbackOp
- All Implemented Interfaces:
XdrElement
ClawbackOp's original definition in the XDR file is:
struct ClawbackOp
{
Asset asset;
MuxedAccount from;
int64 amount;
};
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
ConstructorsConstructorDescriptionClawbackOp(Asset asset, MuxedAccount from, Int64 amount) Creates a newClawbackOpinstance. -
Method Summary
Modifier and TypeMethodDescriptionstatic ClawbackOp.ClawbackOpBuilderbuilder()static ClawbackOpdecode(XdrDataInputStream stream) static ClawbackOpdecode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) Encodes this value to XDR and writes it to the provided stream.booleanstatic ClawbackOpstatic ClawbackOpfromXdrBase64(String xdr) static ClawbackOpfromXdrByteArray(byte[] xdr) Value of theamountfield.getAsset()Value of theassetfield.getFrom()Value of thefromfield.inthashCode()voidValue of theamountfield.voidValue of theassetfield.voidsetFrom(MuxedAccount from) Value of thefromfield.toJson()Serializes this value to JSON.toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
ClawbackOp
public ClawbackOp() -
ClawbackOp
Creates a newClawbackOpinstance.- Parameters:
asset- theassetfield valuefrom- thefromfield valueamount- theamountfield 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
-
getAsset
Value of theassetfield.- Returns:
- the
assetfield value
-
getFrom
Value of thefromfield.- Returns:
- the
fromfield value
-
getAmount
Value of theamountfield.- Returns:
- the
amountfield value
-
setAsset
Value of theassetfield.- Parameters:
asset- theassetfield value
-
setFrom
Value of thefromfield.- Parameters:
from- thefromfield value
-
setAmount
Value of theamountfield.- Parameters:
amount- theamountfield value
-
equals
-
hashCode
public int hashCode() -
toString
-