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
-
Constructor Summary
ConstructorDescriptionClaimAtom
(ClaimAtomType discriminant, ClaimOfferAtomV0 v0, ClaimOfferAtom orderBook, ClaimLiquidityAtom liquidityPool) -
Method Summary
Modifier and TypeMethodDescriptionstatic ClaimAtom.ClaimAtomBuilder
builder()
static ClaimAtom
decode
(XdrDataInputStream stream) void
encode
(XdrDataOutputStream stream) boolean
static ClaimAtom
fromXdrBase64
(String xdr) static ClaimAtom
fromXdrByteArray
(byte[] xdr) getV0()
int
hashCode()
void
setDiscriminant
(ClaimAtomType discriminant) void
setLiquidityPool
(ClaimLiquidityAtom liquidityPool) void
setOrderBook
(ClaimOfferAtom orderBook) void
toString()
default String
default 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
-