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
Modifier and TypeClassDescriptionstatic class
ManageSellOfferOperation.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()
boolean
static ManageSellOfferOperation
Construct a newManageSellOfferOperation
object from aManageSellOfferOp
XDR object.@NonNull BigDecimal
Amount of selling being sold (max of 7 decimal places).@NonNull Asset
The asset being bought in this operationlong
The ID of the offer, when it is 0, represents creating a new offer, otherwise updates an existing offer.@NonNull Price
getPrice()
Price of 1 unit of selling in terms of buying.@NonNull Asset
The asset being sold in this operationint
hashCode()
toString()
Methods inherited from class org.stellar.sdk.operations.Operation
fromXdr, getSourceAccount, setSourceAccount, toXdr, toXdrBase64
-
Method Details
-
fromXdr
Construct a newManageSellOfferOperation
object from aManageSellOfferOp
XDR object.- Parameters:
op
-ManageSellOfferOp
XDR object- Returns:
ManageSellOfferOperation
object
-
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()
-