Package org.stellar.sdk.xdr
Class ContractCostParams
java.lang.Object
org.stellar.sdk.xdr.ContractCostParams
- All Implemented Interfaces:
XdrElement
ContractCostParams's original definition in the XDR file is:
typedef ContractCostParamEntry ContractCostParams<CONTRACT_COST_COUNT_LIMIT>;
-
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
ConstructorsConstructorDescriptionContractCostParams(ContractCostParamEntry[] ContractCostParams) Creates a newContractCostParamsinstance. -
Method Summary
Modifier and TypeMethodDescriptionstatic ContractCostParamsdecode(XdrDataInputStream stream) static ContractCostParamsdecode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) Encodes this value to XDR and writes it to the provided stream.booleanstatic ContractCostParamsstatic ContractCostParamsfromXdrBase64(String xdr) static ContractCostParamsfromXdrByteArray(byte[] xdr) Value of theContractCostParamsfield.inthashCode()voidsetContractCostParams(ContractCostParamEntry[] ContractCostParams) Value of theContractCostParamsfield.toJson()Serializes this value to JSON.toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
ContractCostParams
public ContractCostParams() -
ContractCostParams
Creates a newContractCostParamsinstance.- Parameters:
ContractCostParams- theContractCostParamsfield 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
- 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
-
getContractCostParams
Value of theContractCostParamsfield.- Returns:
- the
ContractCostParamsfield value
-
setContractCostParams
Value of theContractCostParamsfield.- Parameters:
ContractCostParams- theContractCostParamsfield value
-
equals
-
hashCode
public int hashCode() -
toString
-