public class ManageSellOfferOperation extends Operation
Modifier and Type | Class and Description |
---|---|
static class |
ManageSellOfferOperation.ManageSellOfferOperationBuilder<C extends ManageSellOfferOperation,B extends ManageSellOfferOperation.ManageSellOfferOperationBuilder<C,B>> |
Operation.OperationBuilder<C extends Operation,B extends Operation.OperationBuilder<C,B>>
Modifier and Type | Method and Description |
---|---|
static ManageSellOfferOperation.ManageSellOfferOperationBuilder<?,?> |
builder() |
boolean |
equals(java.lang.Object o) |
static ManageSellOfferOperation |
fromXdr(ManageSellOfferOp op)
Construct a new
ManageSellOfferOperation object from a ManageSellOfferOp XDR
object. |
@NonNull java.math.BigDecimal |
getAmount()
Amount of selling being sold (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 1 unit of selling in terms of buying.
|
@NonNull Asset |
getSelling()
The asset being sold in this operation
|
int |
hashCode() |
ManageSellOfferOperation.ManageSellOfferOperationBuilder<?,?> |
toBuilder() |
java.lang.String |
toString() |
formatAmountScale, fromXdr, fromXdrAmount, getSourceAccount, setSourceAccount, toXdr, toXdrAmount, toXdrBase64
public static ManageSellOfferOperation fromXdr(ManageSellOfferOp op)
ManageSellOfferOperation
object from a ManageSellOfferOp
XDR
object.op
- ManageSellOfferOp
XDR objectManageSellOfferOperation
objectpublic static ManageSellOfferOperation.ManageSellOfferOperationBuilder<?,?> builder()
public ManageSellOfferOperation.ManageSellOfferOperationBuilder<?,?> 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