Package org.stellar.sdk.xdr
Class PaymentOp
java.lang.Object
org.stellar.sdk.xdr.PaymentOp
- All Implemented Interfaces:
XdrElement
PaymentOp's original definition in the XDR file is:
struct PaymentOp
{
MuxedAccount destination; // recipient of the payment
Asset asset; // what they end up with
int64 amount; // amount they end up with
};
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PaymentOp.PaymentOpBuilderbuilder()static PaymentOpdecode(XdrDataInputStream stream) voidencode(XdrDataOutputStream stream) booleanstatic PaymentOpfromXdrBase64(String xdr) static PaymentOpfromXdrByteArray(byte[] xdr) getAsset()inthashCode()voidvoidvoidsetDestination(MuxedAccount destination) toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
PaymentOp
public PaymentOp() -
PaymentOp
-
-
Method Details
-
encode
- Specified by:
encodein interfaceXdrElement- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
builder
-
toBuilder
-
getDestination
-
getAsset
-
getAmount
-
setDestination
-
setAsset
-
setAmount
-
equals
-
hashCode
public int hashCode() -
toString
-