public class CreatePassiveSellOfferOp extends java.lang.Object implements XdrElement
struct CreatePassiveSellOfferOp
{
Asset selling; // A
Asset buying; // B
int64 amount; // amount taker gets
Price price; // cost of A in terms of B
};
| Modifier and Type | Class and Description |
|---|---|
static class |
CreatePassiveSellOfferOp.CreatePassiveSellOfferOpBuilder |
| Constructor and Description |
|---|
CreatePassiveSellOfferOp() |
CreatePassiveSellOfferOp(Asset selling,
Asset buying,
Int64 amount,
Price price) |
| Modifier and Type | Method and Description |
|---|---|
static CreatePassiveSellOfferOp.CreatePassiveSellOfferOpBuilder |
builder() |
static CreatePassiveSellOfferOp |
decode(XdrDataInputStream stream) |
void |
encode(XdrDataOutputStream stream) |
boolean |
equals(java.lang.Object o) |
static CreatePassiveSellOfferOp |
fromXdrBase64(java.lang.String xdr) |
static CreatePassiveSellOfferOp |
fromXdrByteArray(byte[] xdr) |
Int64 |
getAmount() |
Asset |
getBuying() |
Price |
getPrice() |
Asset |
getSelling() |
int |
hashCode() |
void |
setAmount(Int64 amount) |
void |
setBuying(Asset buying) |
void |
setPrice(Price price) |
void |
setSelling(Asset selling) |
CreatePassiveSellOfferOp.CreatePassiveSellOfferOpBuilder |
toBuilder() |
java.lang.String |
toString() |
toXdrBase64, toXdrByteArraypublic void encode(XdrDataOutputStream stream) throws java.io.IOException
encode in interface XdrElementjava.io.IOExceptionpublic static CreatePassiveSellOfferOp decode(XdrDataInputStream stream) throws java.io.IOException
java.io.IOExceptionpublic static CreatePassiveSellOfferOp fromXdrBase64(java.lang.String xdr) throws java.io.IOException
java.io.IOExceptionpublic static CreatePassiveSellOfferOp fromXdrByteArray(byte[] xdr) throws java.io.IOException
java.io.IOExceptionpublic static CreatePassiveSellOfferOp.CreatePassiveSellOfferOpBuilder builder()
public CreatePassiveSellOfferOp.CreatePassiveSellOfferOpBuilder toBuilder()
public Asset getSelling()
public Asset getBuying()
public Int64 getAmount()
public Price getPrice()
public void setSelling(Asset selling)
public void setBuying(Asset buying)
public void setAmount(Int64 amount)
public void setPrice(Price price)
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object