Package org.stellar.sdk.xdr
Class OfferEntry
java.lang.Object
org.stellar.sdk.xdr.OfferEntry
OfferEntry's original definition in the XDR file is:
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; };
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
OfferEntryExt's original definition in the XDR file is: -
Constructor Summary
ConstructorDescriptionOfferEntry
(AccountID sellerID, Int64 offerID, Asset selling, Asset buying, Int64 amount, Price price, Uint32 flags, OfferEntry.OfferEntryExt ext) -
Method Summary
Modifier and TypeMethodDescriptionstatic OfferEntry.OfferEntryBuilder
builder()
static OfferEntry
decode
(XdrDataInputStream stream) void
encode
(XdrDataOutputStream stream) boolean
static OfferEntry
fromXdrBase64
(String xdr) static OfferEntry
fromXdrByteArray
(byte[] xdr) getExt()
getFlags()
getPrice()
int
hashCode()
void
void
void
void
void
setOfferID
(Int64 offerID) void
void
setSellerID
(AccountID sellerID) void
setSelling
(Asset selling) toString()
default String
default byte[]
-
Constructor Details
-
OfferEntry
public OfferEntry() -
OfferEntry
-
-
Method Details
-
encode
- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
builder
-
toBuilder
-
getSellerID
-
getOfferID
-
getSelling
-
getBuying
-
getAmount
-
getPrice
-
getFlags
-
getExt
-
setSellerID
-
setOfferID
-
setSelling
-
setBuying
-
setAmount
-
setPrice
-
setFlags
-
setExt
-
equals
-
hashCode
public int hashCode() -
toString
-
toXdrBase64
- Throws:
IOException
-
toXdrByteArray
- Throws:
IOException
-