Package org.stellar.sdk.xdr
Class ClaimOfferAtom
java.lang.Object
org.stellar.sdk.xdr.ClaimOfferAtom
ClaimOfferAtom's original definition in the XDR file is:
struct ClaimOfferAtom { // emitted to identify the offer AccountID sellerID; // Account that owns the offer int64 offerID; // amount and asset taken from the owner Asset assetSold; int64 amountSold; // amount and asset sent to the owner Asset assetBought; int64 amountBought; };
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
static ClaimOfferAtom
decode
(XdrDataInputStream stream) void
encode
(XdrDataOutputStream stream) boolean
static ClaimOfferAtom
fromXdrBase64
(String xdr) static ClaimOfferAtom
fromXdrByteArray
(byte[] xdr) int
hashCode()
void
setAmountBought
(Int64 amountBought) void
setAmountSold
(Int64 amountSold) void
setAssetBought
(Asset assetBought) void
setAssetSold
(Asset assetSold) void
setOfferID
(Int64 offerID) void
setSellerID
(AccountID sellerID) toString()
default String
default byte[]
-
Constructor Details
-
ClaimOfferAtom
public ClaimOfferAtom() -
ClaimOfferAtom
-
-
Method Details
-
encode
- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
builder
-
toBuilder
-
getSellerID
-
getOfferID
-
getAssetSold
-
getAmountSold
-
getAssetBought
-
getAmountBought
-
setSellerID
-
setOfferID
-
setAssetSold
-
setAmountSold
-
setAssetBought
-
setAmountBought
-
equals
-
hashCode
public int hashCode() -
toString
-
toXdrBase64
- Throws:
IOException
-
toXdrByteArray
- Throws:
IOException
-