Package org.stellar.sdk.operations
Class ManageSellOfferOperation.ManageSellOfferOperationBuilder<C extends ManageSellOfferOperation,B extends ManageSellOfferOperation.ManageSellOfferOperationBuilder<C,B>>
java.lang.Object
org.stellar.sdk.operations.Operation.OperationBuilder<C,B>
org.stellar.sdk.operations.ManageSellOfferOperation.ManageSellOfferOperationBuilder<C,B>
- Enclosing class:
ManageSellOfferOperation
public abstract static class ManageSellOfferOperation.ManageSellOfferOperationBuilder<C extends ManageSellOfferOperation,B extends ManageSellOfferOperation.ManageSellOfferOperationBuilder<C,B>>
extends Operation.OperationBuilder<C,B>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionamount
(@NonNull BigDecimal amount) abstract C
build()
The asset being bought in this operationofferId
(long offerId) The ID of the offer, when it is 0, represents creating a new offer, otherwise updates an existing offer.Price of 1 unit of selling in terms of buying.The asset being sold in this operationtoString()
Methods inherited from class org.stellar.sdk.operations.Operation.OperationBuilder
sourceAccount
-
Constructor Details
-
ManageSellOfferOperationBuilder
public ManageSellOfferOperationBuilder()
-
-
Method Details
-
amount
-
selling
The asset being sold in this operation- Returns:
this
.
-
buying
The asset being bought in this operation- Returns:
this
.
-
price
Price of 1 unit of selling in terms of buying.- Returns:
this
.
-
offerId
The ID of the offer, when it is 0, represents creating a new offer, otherwise updates an existing offer.- Returns:
this
.
-
build
- Specified by:
build
in classOperation.OperationBuilder<C extends ManageSellOfferOperation,
B extends ManageSellOfferOperation.ManageSellOfferOperationBuilder<C, B>>
-
toString
- Overrides:
toString
in classOperation.OperationBuilder<C extends ManageSellOfferOperation,
B extends ManageSellOfferOperation.ManageSellOfferOperationBuilder<C, B>>
-