public class ManageBuyOfferOperation extends Operation
Modifier and Type | Class and Description |
---|---|
static class |
ManageBuyOfferOperation.ManageBuyOfferOperationBuilder<C extends ManageBuyOfferOperation,B extends ManageBuyOfferOperation.ManageBuyOfferOperationBuilder<C,B>> |
Operation.OperationBuilder<C extends Operation,B extends Operation.OperationBuilder<C,B>>
Modifier and Type | Method and Description |
---|---|
static ManageBuyOfferOperation.ManageBuyOfferOperationBuilder<?,?> |
builder() |
boolean |
equals(java.lang.Object o) |
static ManageBuyOfferOperation |
fromXdr(ManageBuyOfferOp op)
Construct a new
ManageBuyOfferOperation object from a ManageBuyOfferOp XDR
object. |
@NonNull java.math.BigDecimal |
getAmount()
Amount of asset to be bought (max of 7 decimal places).
|
@NonNull Asset |
getBuying()
The asset being bought in this operation
|
long |
getOfferId()
The ID of the offer, when it is 0, represents creating a new offer, otherwise updates an
existing offer.
|
@NonNull Price |
getPrice()
Price of thing being bought in terms of what you are selling.
|
@NonNull Asset |
getSelling()
The asset being sold in this operation
|
int |
hashCode() |
ManageBuyOfferOperation.ManageBuyOfferOperationBuilder<?,?> |
toBuilder() |
java.lang.String |
toString() |
formatAmountScale, fromXdr, fromXdrAmount, getSourceAccount, setSourceAccount, toXdr, toXdrAmount, toXdrBase64
public static ManageBuyOfferOperation fromXdr(ManageBuyOfferOp op)
ManageBuyOfferOperation
object from a ManageBuyOfferOp
XDR
object.op
- ManageBuyOfferOp
XDR objectManageBuyOfferOperation
objectpublic static ManageBuyOfferOperation.ManageBuyOfferOperationBuilder<?,?> builder()
public ManageBuyOfferOperation.ManageBuyOfferOperationBuilder<?,?> toBuilder()
@NonNull public @NonNull Asset getSelling()
@NonNull public @NonNull Asset getBuying()
@NonNull public @NonNull java.math.BigDecimal getAmount()
@NonNull public @NonNull Price getPrice()
public long getOfferId()
public java.lang.String toString()
toString
in class java.lang.Object