public class OfferEntry extends java.lang.Object implements XdrElement
struct OfferEntry
{
AccountID sellerID;
int64 offerID;
Asset selling; // A
Asset buying; // B
int64 amount; // amount of A
/* price for this offer:
price of A in terms of B
price=AmountB/AmountA=priceNumerator/priceDenominator
price is after fees
*/
Price price;
uint32 flags; // see OfferEntryFlags
// reserved for future use
union switch (int v)
{
case 0:
void;
}
ext;
};
| Modifier and Type | Class and Description |
|---|---|
static class |
OfferEntry.OfferEntryBuilder |
static class |
OfferEntry.OfferEntryExt
OfferEntryExt's original definition in the XDR file is:
|
| Constructor and Description |
|---|
OfferEntry() |
OfferEntry(AccountID sellerID,
Int64 offerID,
Asset selling,
Asset buying,
Int64 amount,
Price price,
Uint32 flags,
OfferEntry.OfferEntryExt ext) |
| Modifier and Type | Method and Description |
|---|---|
static OfferEntry.OfferEntryBuilder |
builder() |
static OfferEntry |
decode(XdrDataInputStream stream) |
void |
encode(XdrDataOutputStream stream) |
boolean |
equals(java.lang.Object o) |
static OfferEntry |
fromXdrBase64(java.lang.String xdr) |
static OfferEntry |
fromXdrByteArray(byte[] xdr) |
Int64 |
getAmount() |
Asset |
getBuying() |
OfferEntry.OfferEntryExt |
getExt() |
Uint32 |
getFlags() |
Int64 |
getOfferID() |
Price |
getPrice() |
AccountID |
getSellerID() |
Asset |
getSelling() |
int |
hashCode() |
void |
setAmount(Int64 amount) |
void |
setBuying(Asset buying) |
void |
setExt(OfferEntry.OfferEntryExt ext) |
void |
setFlags(Uint32 flags) |
void |
setOfferID(Int64 offerID) |
void |
setPrice(Price price) |
void |
setSellerID(AccountID sellerID) |
void |
setSelling(Asset selling) |
OfferEntry.OfferEntryBuilder |
toBuilder() |
java.lang.String |
toString() |
toXdrBase64, toXdrByteArraypublic void encode(XdrDataOutputStream stream) throws java.io.IOException
encode in interface XdrElementjava.io.IOExceptionpublic static OfferEntry decode(XdrDataInputStream stream) throws java.io.IOException
java.io.IOExceptionpublic static OfferEntry fromXdrBase64(java.lang.String xdr) throws java.io.IOException
java.io.IOExceptionpublic static OfferEntry fromXdrByteArray(byte[] xdr) throws java.io.IOException
java.io.IOExceptionpublic static OfferEntry.OfferEntryBuilder builder()
public OfferEntry.OfferEntryBuilder toBuilder()
public AccountID getSellerID()
public Int64 getOfferID()
public Asset getSelling()
public Asset getBuying()
public Int64 getAmount()
public Price getPrice()
public Uint32 getFlags()
public OfferEntry.OfferEntryExt getExt()
public void setSellerID(AccountID sellerID)
public void setOfferID(Int64 offerID)
public void setSelling(Asset selling)
public void setBuying(Asset buying)
public void setAmount(Int64 amount)
public void setPrice(Price price)
public void setFlags(Uint32 flags)
public void setExt(OfferEntry.OfferEntryExt ext)
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