Package org.stellar.sdk.xdr
Class TrustLineEntryExtensionV2
java.lang.Object
org.stellar.sdk.xdr.TrustLineEntryExtensionV2
- All Implemented Interfaces:
XdrElement
TrustLineEntryExtensionV2's original definition in the XDR file is:
struct TrustLineEntryExtensionV2
{
int32 liquidityPoolUseCount;
union switch (int v)
{
case 0:
void;
}
ext;
};
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classTrustLineEntryExtensionV2Ext's original definition in the XDR file is: -
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
ConstructorsConstructorDescriptionTrustLineEntryExtensionV2(Int32 liquidityPoolUseCount, TrustLineEntryExtensionV2.TrustLineEntryExtensionV2Ext ext) Creates a newTrustLineEntryExtensionV2instance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static TrustLineEntryExtensionV2decode(XdrDataInputStream stream) static TrustLineEntryExtensionV2decode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) Encodes this value to XDR and writes it to the provided stream.booleanstatic TrustLineEntryExtensionV2static TrustLineEntryExtensionV2fromXdrBase64(String xdr) static TrustLineEntryExtensionV2fromXdrByteArray(byte[] xdr) getExt()Value of theextfield.Value of theliquidityPoolUseCountfield.inthashCode()voidValue of theextfield.voidsetLiquidityPoolUseCount(Int32 liquidityPoolUseCount) Value of theliquidityPoolUseCountfield.toJson()Serializes this value to JSON.toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
TrustLineEntryExtensionV2
public TrustLineEntryExtensionV2() -
TrustLineEntryExtensionV2
public TrustLineEntryExtensionV2(Int32 liquidityPoolUseCount, TrustLineEntryExtensionV2.TrustLineEntryExtensionV2Ext ext) Creates a newTrustLineEntryExtensionV2instance.- Parameters:
liquidityPoolUseCount- theliquidityPoolUseCountfield valueext- theextfield value
-
-
Method Details
-
encode
Description copied from interface:XdrElementEncodes this value to XDR and writes it to the provided stream.- Specified by:
encodein interfaceXdrElement- Parameters:
stream- the destination XDR output stream- Throws:
IOException- if an I/O error occurs while writing the value
-
decode
public static TrustLineEntryExtensionV2 decode(XdrDataInputStream stream, int maxDepth) throws IOException - Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
toJson
Description copied from interface:XdrElementSerializes this value to JSON.- Specified by:
toJsonin interfaceXdrElement- Returns:
- the JSON representation of this value
-
fromJson
-
builder
-
toBuilder
-
getLiquidityPoolUseCount
Value of theliquidityPoolUseCountfield.- Returns:
- the
liquidityPoolUseCountfield value
-
getExt
Value of theextfield.- Returns:
- the
extfield value
-
setLiquidityPoolUseCount
Value of theliquidityPoolUseCountfield.- Parameters:
liquidityPoolUseCount- theliquidityPoolUseCountfield value
-
setExt
Value of theextfield.- Parameters:
ext- theextfield value
-
equals
-
hashCode
public int hashCode() -
toString
-