Package org.stellar.sdk.operations
Class PaymentOperation
java.lang.Object
org.stellar.sdk.operations.Operation
org.stellar.sdk.operations.PaymentOperation
Represents Payment operation.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classPaymentOperation.PaymentOperationBuilder<C extends PaymentOperation,B extends PaymentOperation.PaymentOperationBuilder<C, B>> Nested classes/interfaces inherited from class org.stellar.sdk.operations.Operation
Operation.OperationBuilder<C extends Operation,B extends Operation.OperationBuilder<C, B>> -
Method Summary
Modifier and TypeMethodDescriptionstatic PaymentOperation.PaymentOperationBuilder<?, ?> builder()booleanstatic PaymentOperationConstruct a newPaymentOperationobject from thePaymentOpXDR object.@NonNull BigDecimalAmount of the asset to send.@NonNull AssetgetAsset()Asset to send to the destination account.@NonNull StringAccount that receives the payment.inthashCode()toString()Methods inherited from class org.stellar.sdk.operations.Operation
fromXdr, getSourceAccount, setSourceAccount, toXdr, toXdrBase64
-
Method Details
-
fromXdr
Construct a newPaymentOperationobject from thePaymentOpXDR object.- Parameters:
op-PaymentOpXDR object- Returns:
PaymentOperationobject
-
builder
-
toBuilder
-
getDestination
Account that receives the payment. -
getAsset
Asset to send to the destination account. -
getAmount
Amount of the asset to send. (max of 7 decimal places). -
toString
-
equals
-
hashCode
public int hashCode()
-