Package org.stellar.sdk.xdr
Class CreatePassiveSellOfferOp
java.lang.Object
org.stellar.sdk.xdr.CreatePassiveSellOfferOp
- All Implemented Interfaces:
XdrElement
CreatePassiveSellOfferOp's original definition in the XDR file is:
struct CreatePassiveSellOfferOp
{
Asset selling; // A
Asset buying; // B
int64 amount; // amount taker gets
Price price; // cost of A in terms of B
};
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Constructor Summary
ConstructorsConstructorDescriptionCreatePassiveSellOfferOp(Asset selling, Asset buying, Int64 amount, Price price) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static CreatePassiveSellOfferOpdecode(XdrDataInputStream stream) voidencode(XdrDataOutputStream stream) booleanstatic CreatePassiveSellOfferOpfromXdrBase64(String xdr) static CreatePassiveSellOfferOpfromXdrByteArray(byte[] xdr) getPrice()inthashCode()voidvoidvoidvoidsetSelling(Asset selling) toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
CreatePassiveSellOfferOp
public CreatePassiveSellOfferOp() -
CreatePassiveSellOfferOp
-
-
Method Details
-
encode
- Specified by:
encodein interfaceXdrElement- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
builder
-
toBuilder
-
getSelling
-
getBuying
-
getAmount
-
getPrice
-
setSelling
-
setBuying
-
setAmount
-
setPrice
-
equals
-
hashCode
public int hashCode() -
toString
-