Package org.stellar.sdk.xdr
Class ClaimAtom
java.lang.Object
org.stellar.sdk.xdr.ClaimAtom
ClaimAtom's original definition in the XDR file is:
union ClaimAtom switch (ClaimAtomType type)
{
case CLAIM_ATOM_TYPE_V0:
ClaimOfferAtomV0 v0;
case CLAIM_ATOM_TYPE_ORDER_BOOK:
ClaimOfferAtom orderBook;
case CLAIM_ATOM_TYPE_LIQUIDITY_POOL:
ClaimLiquidityAtom liquidityPool;
};
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionClaimAtom(ClaimAtomType discriminant, ClaimOfferAtomV0 v0, ClaimOfferAtom orderBook, ClaimLiquidityAtom liquidityPool) -
Method Summary
Modifier and TypeMethodDescriptionstatic ClaimAtom.ClaimAtomBuilderbuilder()static ClaimAtomdecode(XdrDataInputStream stream) voidencode(XdrDataOutputStream stream) booleanstatic ClaimAtomfromXdrBase64(String xdr) static ClaimAtomfromXdrByteArray(byte[] xdr) getV0()inthashCode()voidsetDiscriminant(ClaimAtomType discriminant) voidsetLiquidityPool(ClaimLiquidityAtom liquidityPool) voidsetOrderBook(ClaimOfferAtom orderBook) voidtoString()default Stringdefault byte[]
-
Constructor Details
-
ClaimAtom
public ClaimAtom() -
ClaimAtom
public ClaimAtom(ClaimAtomType discriminant, ClaimOfferAtomV0 v0, ClaimOfferAtom orderBook, ClaimLiquidityAtom liquidityPool)
-
-
Method Details
-
encode
- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
builder
-
toBuilder
-
getDiscriminant
-
getV0
-
getOrderBook
-
getLiquidityPool
-
setDiscriminant
-
setV0
-
setOrderBook
-
setLiquidityPool
-
equals
-
hashCode
public int hashCode() -
toString
-
toXdrBase64
- Throws:
IOException
-
toXdrByteArray
- Throws:
IOException
-