Package org.stellar.sdk.operations
Class ManageBuyOfferOperation
java.lang.Object
org.stellar.sdk.operations.Operation
org.stellar.sdk.operations.ManageBuyOfferOperation
Represents ManageBuyOffer operation.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classManageBuyOfferOperation.ManageBuyOfferOperationBuilder<C extends ManageBuyOfferOperation,B extends ManageBuyOfferOperation.ManageBuyOfferOperationBuilder<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 ManageBuyOfferOperationConstruct a newManageBuyOfferOperationobject from aManageBuyOfferOpXDR object.@NonNull BigDecimalAmount of asset to be bought (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 thing being bought in terms of what you are selling.@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 newManageBuyOfferOperationobject from aManageBuyOfferOpXDR object.- Parameters:
op-ManageBuyOfferOpXDR object- Returns:
ManageBuyOfferOperationobject
-
builder
-
toBuilder
-
getSelling
The asset being sold in this operation -
getBuying
The asset being bought in this operation -
getAmount
Amount of asset to be bought (max of 7 decimal places). -
getPrice
Price of thing being bought in terms of what you are selling. -
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()
-