Package org.stellar.sdk.xdr
Class PathPaymentStrictSendOp
java.lang.Object
org.stellar.sdk.xdr.PathPaymentStrictSendOp
- All Implemented Interfaces:
XdrElement
PathPaymentStrictSendOp's original definition in the XDR file is:
struct PathPaymentStrictSendOp { Asset sendAsset; // asset we pay with int64 sendAmount; // amount of sendAsset to send (excluding fees) MuxedAccount destination; // recipient of the payment Asset destAsset; // what they end up with int64 destMin; // the minimum amount of dest asset to // be received // The operation will fail if it can't be met Asset path<5>; // additional hops it must go through to get there };
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
-
Constructor Summary
ConstructorsConstructorDescriptionPathPaymentStrictSendOp
(Asset sendAsset, Int64 sendAmount, MuxedAccount destination, Asset destAsset, Int64 destMin, Asset[] path) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
static PathPaymentStrictSendOp
decode
(XdrDataInputStream stream) void
encode
(XdrDataOutputStream stream) boolean
static PathPaymentStrictSendOp
fromXdrBase64
(String xdr) static PathPaymentStrictSendOp
fromXdrByteArray
(byte[] xdr) Asset[]
getPath()
int
hashCode()
void
setDestAsset
(Asset destAsset) void
setDestination
(MuxedAccount destination) void
setDestMin
(Int64 destMin) void
void
setSendAmount
(Int64 sendAmount) void
setSendAsset
(Asset sendAsset) toString()
Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
PathPaymentStrictSendOp
public PathPaymentStrictSendOp() -
PathPaymentStrictSendOp
-
-
Method Details
-
encode
- Specified by:
encode
in interfaceXdrElement
- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
builder
-
toBuilder
-
getSendAsset
-
getSendAmount
-
getDestination
-
getDestAsset
-
getDestMin
-
getPath
-
setSendAsset
-
setSendAmount
-
setDestination
-
setDestAsset
-
setDestMin
-
setPath
-
equals
-
hashCode
public int hashCode() -
toString
-