Package org.stellar.sdk.operations
Class ManageSellOfferOperation
java.lang.Object
org.stellar.sdk.operations.Operation
org.stellar.sdk.operations.ManageSellOfferOperation
Represents ManageSellOffer operation.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classManageSellOfferOperation.ManageSellOfferOperationBuilder<C extends ManageSellOfferOperation,B extends ManageSellOfferOperation.ManageSellOfferOperationBuilder<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 TypeMethodDescriptionbuilder()booleanstatic ManageSellOfferOperationConstruct a newManageSellOfferOperationobject from aManageSellOfferOpXDR object.@NonNull BigDecimalAmount of selling being sold (max of 7 decimal places).@NonNull AssetThe asset being bought in this operationlongThe ID of the offer, when it is 0, represents creating a new offer, otherwise updates an existing offer.@NonNull PricegetPrice()Price of 1 unit of selling in terms of buying.@NonNull AssetThe asset being sold in this operationinthashCode()toString()Methods inherited from class org.stellar.sdk.operations.Operation
fromXdr, getSourceAccount, setSourceAccount, toXdr, toXdrBase64
-
Method Details
-
fromXdr
Construct a newManageSellOfferOperationobject from aManageSellOfferOpXDR object.- Parameters:
op-ManageSellOfferOpXDR object- Returns:
ManageSellOfferOperationobject
-
builder
-
toBuilder
-
getSelling
The asset being sold in this operation -
getBuying
The asset being bought in this operation -
getAmount
Amount of selling being sold (max of 7 decimal places). -
getPrice
Price of 1 unit of selling in terms of buying. -
getOfferId
public long getOfferId()The ID of the offer, when it is 0, represents creating a new offer, otherwise updates an existing offer. -
toString
-
equals
-
hashCode
public int hashCode()
-