Package org.stellar.sdk.xdr
Class ChangeTrustAsset
java.lang.Object
org.stellar.sdk.xdr.ChangeTrustAsset
ChangeTrustAsset's original definition in the XDR file is:
union ChangeTrustAsset switch (AssetType type) { case ASSET_TYPE_NATIVE: // Not credit void; case ASSET_TYPE_CREDIT_ALPHANUM4: AlphaNum4 alphaNum4; case ASSET_TYPE_CREDIT_ALPHANUM12: AlphaNum12 alphaNum12; case ASSET_TYPE_POOL_SHARE: LiquidityPoolParameters liquidityPool; // add other asset types here in the future };
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionChangeTrustAsset
(AssetType discriminant, AlphaNum4 alphaNum4, AlphaNum12 alphaNum12, LiquidityPoolParameters liquidityPool) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
static ChangeTrustAsset
decode
(XdrDataInputStream stream) void
encode
(XdrDataOutputStream stream) boolean
static ChangeTrustAsset
fromXdrBase64
(String xdr) static ChangeTrustAsset
fromXdrByteArray
(byte[] xdr) int
hashCode()
void
setAlphaNum12
(AlphaNum12 alphaNum12) void
setAlphaNum4
(AlphaNum4 alphaNum4) void
setDiscriminant
(AssetType discriminant) void
setLiquidityPool
(LiquidityPoolParameters liquidityPool) toString()
default String
default byte[]
-
Constructor Details
-
ChangeTrustAsset
public ChangeTrustAsset() -
ChangeTrustAsset
public ChangeTrustAsset(AssetType discriminant, AlphaNum4 alphaNum4, AlphaNum12 alphaNum12, LiquidityPoolParameters liquidityPool)
-
-
Method Details
-
encode
- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
builder
-
toBuilder
-
getDiscriminant
-
getAlphaNum4
-
getAlphaNum12
-
getLiquidityPool
-
setDiscriminant
-
setAlphaNum4
-
setAlphaNum12
-
setLiquidityPool
-
equals
-
hashCode
public int hashCode() -
toString
-
toXdrBase64
- Throws:
IOException
-
toXdrByteArray
- Throws:
IOException
-