Package org.stellar.sdk.xdr
Class SimplePaymentResult
java.lang.Object
org.stellar.sdk.xdr.SimplePaymentResult
- All Implemented Interfaces:
XdrElement
SimplePaymentResult's original definition in the XDR file is:
struct SimplePaymentResult
{
AccountID destination;
Asset asset;
int64 amount;
};
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
ConstructorsConstructorDescriptionSimplePaymentResult(AccountID destination, Asset asset, Int64 amount) Creates a newSimplePaymentResultinstance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static SimplePaymentResultdecode(XdrDataInputStream stream) static SimplePaymentResultdecode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) Encodes this value to XDR and writes it to the provided stream.booleanstatic SimplePaymentResultstatic SimplePaymentResultfromXdrBase64(String xdr) static SimplePaymentResultfromXdrByteArray(byte[] xdr) Value of theamountfield.getAsset()Value of theassetfield.Value of thedestinationfield.inthashCode()voidValue of theamountfield.voidValue of theassetfield.voidsetDestination(AccountID destination) Value of thedestinationfield.toJson()Serializes this value to JSON.toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
SimplePaymentResult
public SimplePaymentResult() -
SimplePaymentResult
Creates a newSimplePaymentResultinstance.- Parameters:
destination- thedestinationfield valueasset- theassetfield valueamount- theamountfield 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 SimplePaymentResult 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
-
getDestination
Value of thedestinationfield.- Returns:
- the
destinationfield value
-
getAsset
Value of theassetfield.- Returns:
- the
assetfield value
-
getAmount
Value of theamountfield.- Returns:
- the
amountfield value
-
setDestination
Value of thedestinationfield.- Parameters:
destination- thedestinationfield value
-
setAsset
Value of theassetfield.- Parameters:
asset- theassetfield value
-
setAmount
Value of theamountfield.- Parameters:
amount- theamountfield value
-
equals
-
hashCode
public int hashCode() -
toString
-