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
Modifier and TypeClassDescriptionstatic class
PaymentOperation.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()
boolean
static PaymentOperation
Construct a newPaymentOperation
object from thePaymentOp
XDR object.@NonNull BigDecimal
Amount of the asset to send.@NonNull Asset
getAsset()
Asset to send to the destination account.@NonNull String
Account that receives the payment.int
hashCode()
toString()
Methods inherited from class org.stellar.sdk.operations.Operation
fromXdr, getSourceAccount, setSourceAccount, toXdr, toXdrBase64
-
Method Details
-
fromXdr
Construct a newPaymentOperation
object from thePaymentOp
XDR object.- Parameters:
op
-PaymentOp
XDR object- Returns:
PaymentOperation
object
-
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()
-