Package org.stellar.sdk.xdr
Class ClaimOfferAtomV0
java.lang.Object
org.stellar.sdk.xdr.ClaimOfferAtomV0
- All Implemented Interfaces:
XdrElement
ClaimOfferAtomV0's original definition in the XDR file is:
struct ClaimOfferAtomV0
{
// emitted to identify the offer
uint256 sellerEd25519; // 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 ClaimOfferAtomV0decode(XdrDataInputStream stream) voidencode(XdrDataOutputStream stream) booleanstatic ClaimOfferAtomV0fromXdrBase64(String xdr) static ClaimOfferAtomV0fromXdrByteArray(byte[] xdr) inthashCode()voidsetAmountBought(Int64 amountBought) voidsetAmountSold(Int64 amountSold) voidsetAssetBought(Asset assetBought) voidsetAssetSold(Asset assetSold) voidsetOfferID(Int64 offerID) voidsetSellerEd25519(Uint256 sellerEd25519) toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
ClaimOfferAtomV0
public ClaimOfferAtomV0() -
ClaimOfferAtomV0
-
-
Method Details
-
encode
- Specified by:
encodein interfaceXdrElement- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
builder
-
toBuilder
-
getSellerEd25519
-
getOfferID
-
getAssetSold
-
getAmountSold
-
getAssetBought
-
getAmountBought
-
setSellerEd25519
-
setOfferID
-
setAssetSold
-
setAmountSold
-
setAssetBought
-
setAmountBought
-
equals
-
hashCode
public int hashCode() -
toString
-