Package org.stellar.sdk.xdr
Class CreatePassiveSellOfferOp
java.lang.Object
org.stellar.sdk.xdr.CreatePassiveSellOfferOp
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()default Stringdefault byte[]
-
Constructor Details
-
CreatePassiveSellOfferOp
public CreatePassiveSellOfferOp() -
CreatePassiveSellOfferOp
-
-
Method Details
-
encode
- 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
-
toXdrBase64
- Throws:
IOException
-
toXdrByteArray
- Throws:
IOException
-