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
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static ClaimOfferAtomdecode(XdrDataInputStream stream) voidencode(XdrDataOutputStream stream) booleanstatic ClaimOfferAtomfromXdrBase64(String xdr) static ClaimOfferAtomfromXdrByteArray(byte[] xdr) inthashCode()voidsetAmountBought(Int64 amountBought) voidsetAmountSold(Int64 amountSold) voidsetAssetBought(Asset assetBought) voidsetAssetSold(Asset assetSold) voidsetOfferID(Int64 offerID) voidsetSellerID(AccountID sellerID) toString()default Stringdefault 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
-