Package org.stellar.sdk.xdr
Class PathPaymentStrictReceiveOp
java.lang.Object
org.stellar.sdk.xdr.PathPaymentStrictReceiveOp
PathPaymentStrictReceiveOp's original definition in the XDR file is:
struct PathPaymentStrictReceiveOp { Asset sendAsset; // asset we pay with int64 sendMax; // the maximum amount of sendAsset to // send (excluding fees). // The operation will fail if can't be met MuxedAccount destination; // recipient of the payment Asset destAsset; // what they end up with int64 destAmount; // amount they end up with Asset path<5>; // additional hops it must go through to get there };
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
-
Constructor Summary
ConstructorDescriptionPathPaymentStrictReceiveOp
(Asset sendAsset, Int64 sendMax, MuxedAccount destination, Asset destAsset, Int64 destAmount, Asset[] path) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
static PathPaymentStrictReceiveOp
decode
(XdrDataInputStream stream) void
encode
(XdrDataOutputStream stream) boolean
static PathPaymentStrictReceiveOp
fromXdrBase64
(String xdr) static PathPaymentStrictReceiveOp
fromXdrByteArray
(byte[] xdr) Asset[]
getPath()
int
hashCode()
void
setDestAmount
(Int64 destAmount) void
setDestAsset
(Asset destAsset) void
setDestination
(MuxedAccount destination) void
void
setSendAsset
(Asset sendAsset) void
setSendMax
(Int64 sendMax) toString()
default String
default byte[]
-
Constructor Details
-
PathPaymentStrictReceiveOp
public PathPaymentStrictReceiveOp() -
PathPaymentStrictReceiveOp
-
-
Method Details
-
encode
- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
builder
-
toBuilder
-
getSendAsset
-
getSendMax
-
getDestination
-
getDestAsset
-
getDestAmount
-
getPath
-
setSendAsset
-
setSendMax
-
setDestination
-
setDestAsset
-
setDestAmount
-
setPath
-
equals
-
hashCode
public int hashCode() -
toString
-
toXdrBase64
- Throws:
IOException
-
toXdrByteArray
- Throws:
IOException
-