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
Nested ClassesModifier and TypeClassDescriptionstatic class -
Constructor Summary
ConstructorsConstructorDescriptionPathPaymentStrictReceiveOp(Asset sendAsset, Int64 sendMax, MuxedAccount destination, Asset destAsset, Int64 destAmount, Asset[] path) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static PathPaymentStrictReceiveOpdecode(XdrDataInputStream stream) voidencode(XdrDataOutputStream stream) booleanstatic PathPaymentStrictReceiveOpfromXdrBase64(String xdr) static PathPaymentStrictReceiveOpfromXdrByteArray(byte[] xdr) Asset[]getPath()inthashCode()voidsetDestAmount(Int64 destAmount) voidsetDestAsset(Asset destAsset) voidsetDestination(MuxedAccount destination) voidvoidsetSendAsset(Asset sendAsset) voidsetSendMax(Int64 sendMax) toString()default Stringdefault 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
-