public class PaymentOp extends java.lang.Object implements XdrElement
struct PaymentOp { MuxedAccount destination; // recipient of the payment Asset asset; // what they end up with int64 amount; // amount they end up with };
Modifier and Type | Class and Description |
---|---|
static class |
PaymentOp.PaymentOpBuilder |
Constructor and Description |
---|
PaymentOp() |
PaymentOp(MuxedAccount destination,
Asset asset,
Int64 amount) |
Modifier and Type | Method and Description |
---|---|
static PaymentOp.PaymentOpBuilder |
builder() |
static PaymentOp |
decode(XdrDataInputStream stream) |
void |
encode(XdrDataOutputStream stream) |
boolean |
equals(java.lang.Object o) |
static PaymentOp |
fromXdrBase64(java.lang.String xdr) |
static PaymentOp |
fromXdrByteArray(byte[] xdr) |
Int64 |
getAmount() |
Asset |
getAsset() |
MuxedAccount |
getDestination() |
int |
hashCode() |
void |
setAmount(Int64 amount) |
void |
setAsset(Asset asset) |
void |
setDestination(MuxedAccount destination) |
PaymentOp.PaymentOpBuilder |
toBuilder() |
java.lang.String |
toString() |
toXdrBase64, toXdrByteArray
public PaymentOp()
public PaymentOp(MuxedAccount destination, Asset asset, Int64 amount)
public void encode(XdrDataOutputStream stream) throws java.io.IOException
encode
in interface XdrElement
java.io.IOException
public static PaymentOp decode(XdrDataInputStream stream) throws java.io.IOException
java.io.IOException
public static PaymentOp fromXdrBase64(java.lang.String xdr) throws java.io.IOException
java.io.IOException
public static PaymentOp fromXdrByteArray(byte[] xdr) throws java.io.IOException
java.io.IOException
public static PaymentOp.PaymentOpBuilder builder()
public PaymentOp.PaymentOpBuilder toBuilder()
public MuxedAccount getDestination()
public Asset getAsset()
public Int64 getAmount()
public void setDestination(MuxedAccount destination)
public void setAsset(Asset asset)
public void setAmount(Int64 amount)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object