Package org.stellar.sdk.xdr
Class TrustLineAsset
java.lang.Object
org.stellar.sdk.xdr.TrustLineAsset
TrustLineAsset's original definition in the XDR file is:
union TrustLineAsset 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: PoolID liquidityPoolID; // add other asset types here in the future };
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionTrustLineAsset
(AssetType discriminant, AlphaNum4 alphaNum4, AlphaNum12 alphaNum12, PoolID liquidityPoolID) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
static TrustLineAsset
decode
(XdrDataInputStream stream) void
encode
(XdrDataOutputStream stream) boolean
static TrustLineAsset
fromXdrBase64
(String xdr) static TrustLineAsset
fromXdrByteArray
(byte[] xdr) int
hashCode()
void
setAlphaNum12
(AlphaNum12 alphaNum12) void
setAlphaNum4
(AlphaNum4 alphaNum4) void
setDiscriminant
(AssetType discriminant) void
setLiquidityPoolID
(PoolID liquidityPoolID) toString()
default String
default byte[]
-
Constructor Details
-
TrustLineAsset
public TrustLineAsset() -
TrustLineAsset
public TrustLineAsset(AssetType discriminant, AlphaNum4 alphaNum4, AlphaNum12 alphaNum12, PoolID liquidityPoolID)
-
-
Method Details
-
encode
- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
builder
-
toBuilder
-
getDiscriminant
-
getAlphaNum4
-
getAlphaNum12
-
getLiquidityPoolID
-
setDiscriminant
-
setAlphaNum4
-
setAlphaNum12
-
setLiquidityPoolID
-
equals
-
hashCode
public int hashCode() -
toString
-
toXdrBase64
- Throws:
IOException
-
toXdrByteArray
- Throws:
IOException
-