Package org.stellar.sdk.xdr
Class OfferEntry
java.lang.Object
org.stellar.sdk.xdr.OfferEntry
- All Implemented Interfaces:
XdrElement
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
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classOfferEntryExt's original definition in the XDR file is: -
Constructor Summary
ConstructorsConstructorDescriptionOfferEntry(AccountID sellerID, Int64 offerID, Asset selling, Asset buying, Int64 amount, Price price, Uint32 flags, OfferEntry.OfferEntryExt ext) -
Method Summary
Modifier and TypeMethodDescriptionstatic OfferEntry.OfferEntryBuilderbuilder()static OfferEntrydecode(XdrDataInputStream stream) voidencode(XdrDataOutputStream stream) booleanstatic OfferEntryfromXdrBase64(String xdr) static OfferEntryfromXdrByteArray(byte[] xdr) getExt()getFlags()getPrice()inthashCode()voidvoidvoidvoidvoidsetOfferID(Int64 offerID) voidvoidsetSellerID(AccountID sellerID) voidsetSelling(Asset selling) toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
OfferEntry
public OfferEntry() -
OfferEntry
-
-
Method Details
-
encode
- Specified by:
encodein interfaceXdrElement- 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
-