Package org.stellar.sdk.xdr
Class PathPaymentStrictSendResult.PathPaymentStrictSendResultSuccess
java.lang.Object
org.stellar.sdk.xdr.PathPaymentStrictSendResult.PathPaymentStrictSendResultSuccess
- All Implemented Interfaces:
XdrElement
- Enclosing class:
PathPaymentStrictSendResult
public static class PathPaymentStrictSendResult.PathPaymentStrictSendResultSuccess
extends Object
implements XdrElement
PathPaymentStrictSendResultSuccess's original definition in the XDR file is:
struct
{
ClaimAtom offers<>;
SimplePaymentResult last;
}
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
ConstructorsConstructorDescriptionPathPaymentStrictSendResultSuccess(ClaimAtom[] offers, SimplePaymentResult last) Creates a newPathPaymentStrictSendResultSuccessinstance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()decode(XdrDataInputStream stream) decode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) Encodes this value to XDR and writes it to the provided stream.booleanfromXdrBase64(String xdr) fromXdrByteArray(byte[] xdr) getLast()Value of thelastfield.Value of theoffersfield.inthashCode()voidsetLast(SimplePaymentResult last) Value of thelastfield.voidValue of theoffersfield.toJson()Serializes this value to JSON.toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
PathPaymentStrictSendResultSuccess
public PathPaymentStrictSendResultSuccess() -
PathPaymentStrictSendResultSuccess
Creates a newPathPaymentStrictSendResultSuccessinstance.- Parameters:
offers- theoffersfield valuelast- thelastfield 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 PathPaymentStrictSendResult.PathPaymentStrictSendResultSuccess decode(XdrDataInputStream stream, int maxDepth) throws IOException - Throws:
IOException
-
decode
public static PathPaymentStrictSendResult.PathPaymentStrictSendResultSuccess decode(XdrDataInputStream stream) throws IOException - Throws:
IOException
-
fromXdrBase64
public static PathPaymentStrictSendResult.PathPaymentStrictSendResultSuccess fromXdrBase64(String xdr) throws IOException - Throws:
IOException
-
fromXdrByteArray
public static PathPaymentStrictSendResult.PathPaymentStrictSendResultSuccess fromXdrByteArray(byte[] xdr) throws IOException - 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
-
getOffers
Value of theoffersfield.- Returns:
- the
offersfield value
-
getLast
Value of thelastfield.- Returns:
- the
lastfield value
-
setOffers
Value of theoffersfield.- Parameters:
offers- theoffersfield value
-
setLast
Value of thelastfield.- Parameters:
last- thelastfield value
-
equals
-
hashCode
public int hashCode() -
toString
-