public class CreatePassiveSellOfferOperation extends Operation
Modifier and Type | Class and Description |
---|---|
static class |
CreatePassiveSellOfferOperation.CreatePassiveSellOfferOperationBuilder<C extends CreatePassiveSellOfferOperation,B extends CreatePassiveSellOfferOperation.CreatePassiveSellOfferOperationBuilder<C,B>> |
Operation.OperationBuilder<C extends Operation,B extends Operation.OperationBuilder<C,B>>
Modifier and Type | Method and Description |
---|---|
static CreatePassiveSellOfferOperation.CreatePassiveSellOfferOperationBuilder<?,?> |
builder() |
boolean |
equals(java.lang.Object o) |
static CreatePassiveSellOfferOperation |
fromXdr(CreatePassiveSellOfferOp op)
Construct a new
CreatePassiveSellOfferOperation object from a CreatePassiveSellOfferOp 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
|
@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() |
CreatePassiveSellOfferOperation.CreatePassiveSellOfferOperationBuilder<?,?> |
toBuilder() |
java.lang.String |
toString() |
formatAmountScale, fromXdr, fromXdrAmount, getSourceAccount, setSourceAccount, toXdr, toXdrAmount, toXdrBase64
public static CreatePassiveSellOfferOperation fromXdr(CreatePassiveSellOfferOp op)
CreatePassiveSellOfferOperation
object from a CreatePassiveSellOfferOp
XDR object.op
- CreatePassiveSellOfferOp
XDR objectCreatePassiveSellOfferOperation
objectpublic static CreatePassiveSellOfferOperation.CreatePassiveSellOfferOperationBuilder<?,?> builder()
public CreatePassiveSellOfferOperation.CreatePassiveSellOfferOperationBuilder<?,?> toBuilder()
@NonNull public @NonNull Asset getSelling()
@NonNull public @NonNull Asset getBuying()
@NonNull public @NonNull java.math.BigDecimal getAmount()
@NonNull public @NonNull Price getPrice()
public java.lang.String toString()
toString
in class java.lang.Object