Package org.stellar.sdk.xdr
Class PathPaymentStrictSendResult
java.lang.Object
org.stellar.sdk.xdr.PathPaymentStrictSendResult
PathPaymentStrictSendResult's original definition in the XDR file is:
union PathPaymentStrictSendResult switch (PathPaymentStrictSendResultCode code) { case PATH_PAYMENT_STRICT_SEND_SUCCESS: struct { ClaimAtom offers<>; SimplePaymentResult last; } success; case PATH_PAYMENT_STRICT_SEND_MALFORMED: case PATH_PAYMENT_STRICT_SEND_UNDERFUNDED: case PATH_PAYMENT_STRICT_SEND_SRC_NO_TRUST: case PATH_PAYMENT_STRICT_SEND_SRC_NOT_AUTHORIZED: case PATH_PAYMENT_STRICT_SEND_NO_DESTINATION: case PATH_PAYMENT_STRICT_SEND_NO_TRUST: case PATH_PAYMENT_STRICT_SEND_NOT_AUTHORIZED: case PATH_PAYMENT_STRICT_SEND_LINE_FULL: void; case PATH_PAYMENT_STRICT_SEND_NO_ISSUER: Asset noIssuer; // the asset that caused the error case PATH_PAYMENT_STRICT_SEND_TOO_FEW_OFFERS: case PATH_PAYMENT_STRICT_SEND_OFFER_CROSS_SELF: case PATH_PAYMENT_STRICT_SEND_UNDER_DESTMIN: void; };
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
PathPaymentStrictSendResultSuccess's original definition in the XDR file is: -
Constructor Summary
ConstructorDescriptionPathPaymentStrictSendResult
(PathPaymentStrictSendResultCode discriminant, PathPaymentStrictSendResult.PathPaymentStrictSendResultSuccess success, Asset noIssuer) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
static PathPaymentStrictSendResult
decode
(XdrDataInputStream stream) void
encode
(XdrDataOutputStream stream) boolean
static PathPaymentStrictSendResult
fromXdrBase64
(String xdr) static PathPaymentStrictSendResult
fromXdrByteArray
(byte[] xdr) int
hashCode()
void
setDiscriminant
(PathPaymentStrictSendResultCode discriminant) void
setNoIssuer
(Asset noIssuer) void
toString()
default String
default byte[]
-
Constructor Details
-
PathPaymentStrictSendResult
public PathPaymentStrictSendResult() -
PathPaymentStrictSendResult
public PathPaymentStrictSendResult(PathPaymentStrictSendResultCode discriminant, PathPaymentStrictSendResult.PathPaymentStrictSendResultSuccess success, Asset noIssuer)
-
-
Method Details
-
encode
- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
builder
-
toBuilder
-
getDiscriminant
-
getSuccess
-
getNoIssuer
-
setDiscriminant
-
setSuccess
-
setNoIssuer
-
equals
-
hashCode
public int hashCode() -
toString
-
toXdrBase64
- Throws:
IOException
-
toXdrByteArray
- Throws:
IOException
-