Package org.stellar.sdk.xdr
Class ManageSellOfferOp
java.lang.Object
org.stellar.sdk.xdr.ManageSellOfferOp
- All Implemented Interfaces:
XdrElement
ManageSellOfferOp's original definition in the XDR file is:
struct ManageSellOfferOp
{
Asset selling;
Asset buying;
int64 amount; // amount being sold. if set to 0, delete the offer
Price price; // price of thing being sold in terms of what you are buying
// 0=create a new offer, otherwise edit an existing offer
int64 offerID;
};
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static ManageSellOfferOpdecode(XdrDataInputStream stream) voidencode(XdrDataOutputStream stream) booleanstatic ManageSellOfferOpfromXdrBase64(String xdr) static ManageSellOfferOpfromXdrByteArray(byte[] xdr) getPrice()inthashCode()voidvoidvoidsetOfferID(Int64 offerID) voidvoidsetSelling(Asset selling) toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
ManageSellOfferOp
public ManageSellOfferOp() -
ManageSellOfferOp
-
-
Method Details
-
encode
- Specified by:
encodein interfaceXdrElement- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
builder
-
toBuilder
-
getSelling
-
getBuying
-
getAmount
-
getPrice
-
getOfferID
-
setSelling
-
setBuying
-
setAmount
-
setPrice
-
setOfferID
-
equals
-
hashCode
public int hashCode() -
toString
-