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 -
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
ConstructorsConstructorDescriptionPathPaymentStrictSendOp(Asset sendAsset, Int64 sendAmount, MuxedAccount destination, Asset destAsset, Int64 destMin, Asset[] path) Creates a newPathPaymentStrictSendOpinstance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static PathPaymentStrictSendOpdecode(XdrDataInputStream stream) static PathPaymentStrictSendOpdecode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) Encodes this value to XDR and writes it to the provided stream.booleanstatic PathPaymentStrictSendOpstatic PathPaymentStrictSendOpfromXdrBase64(String xdr) static PathPaymentStrictSendOpfromXdrByteArray(byte[] xdr) Value of thedestAssetfield.Value of thedestinationfield.Value of thedestMinfield.Asset[]getPath()Value of thepathfield.Value of thesendAmountfield.Value of thesendAssetfield.inthashCode()voidsetDestAsset(Asset destAsset) Value of thedestAssetfield.voidsetDestination(MuxedAccount destination) Value of thedestinationfield.voidsetDestMin(Int64 destMin) Value of thedestMinfield.voidValue of thepathfield.voidsetSendAmount(Int64 sendAmount) Value of thesendAmountfield.voidsetSendAsset(Asset sendAsset) Value of thesendAssetfield.toJson()Serializes this value to JSON.toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
PathPaymentStrictSendOp
public PathPaymentStrictSendOp() -
PathPaymentStrictSendOp
public PathPaymentStrictSendOp(Asset sendAsset, Int64 sendAmount, MuxedAccount destination, Asset destAsset, Int64 destMin, Asset[] path) Creates a newPathPaymentStrictSendOpinstance.- Parameters:
sendAsset- thesendAssetfield valuesendAmount- thesendAmountfield valuedestination- thedestinationfield valuedestAsset- thedestAssetfield valuedestMin- thedestMinfield valuepath- thepathfield value
-
-
Method Details
-
encode
Description copied from interface:XdrElementEncodes this value to XDR and writes it to the provided stream.- Specified by:
encodein interfaceXdrElement- Parameters:
stream- the destination XDR output stream- Throws:
IOException- if an I/O error occurs while writing the value
-
decode
public static PathPaymentStrictSendOp decode(XdrDataInputStream stream, int maxDepth) throws IOException - Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
toJson
Description copied from interface:XdrElementSerializes this value to JSON.- Specified by:
toJsonin interfaceXdrElement- Returns:
- the JSON representation of this value
-
fromJson
-
builder
-
toBuilder
-
getSendAsset
Value of thesendAssetfield.- Returns:
- the
sendAssetfield value
-
getSendAmount
Value of thesendAmountfield.- Returns:
- the
sendAmountfield value
-
getDestination
Value of thedestinationfield.- Returns:
- the
destinationfield value
-
getDestAsset
Value of thedestAssetfield.- Returns:
- the
destAssetfield value
-
getDestMin
Value of thedestMinfield.- Returns:
- the
destMinfield value
-
getPath
Value of thepathfield.- Returns:
- the
pathfield value
-
setSendAsset
Value of thesendAssetfield.- Parameters:
sendAsset- thesendAssetfield value
-
setSendAmount
Value of thesendAmountfield.- Parameters:
sendAmount- thesendAmountfield value
-
setDestination
Value of thedestinationfield.- Parameters:
destination- thedestinationfield value
-
setDestAsset
Value of thedestAssetfield.- Parameters:
destAsset- thedestAssetfield value
-
setDestMin
Value of thedestMinfield.- Parameters:
destMin- thedestMinfield value
-
setPath
Value of thepathfield.- Parameters:
path- thepathfield value
-
equals
-
hashCode
public int hashCode() -
toString
-