Package org.stellar.sdk.xdr
Class ContractCodeEntry.ContractCodeEntryExt.ContractCodeEntryV1
java.lang.Object
org.stellar.sdk.xdr.ContractCodeEntry.ContractCodeEntryExt.ContractCodeEntryV1
- All Implemented Interfaces:
XdrElement
- Enclosing class:
ContractCodeEntry.ContractCodeEntryExt
public static class ContractCodeEntry.ContractCodeEntryExt.ContractCodeEntryV1
extends Object
implements XdrElement
ContractCodeEntryV1's original definition in the XDR file is:
struct
{
ExtensionPoint ext;
ContractCodeCostInputs costInputs;
}
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
ConstructorsConstructorDescriptionContractCodeEntryV1(ExtensionPoint ext, ContractCodeCostInputs costInputs) Creates a newContractCodeEntryV1instance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()decode(XdrDataInputStream stream) decode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) Encodes this value to XDR and writes it to the provided stream.booleanfromXdrBase64(String xdr) fromXdrByteArray(byte[] xdr) Value of thecostInputsfield.getExt()Value of theextfield.inthashCode()voidsetCostInputs(ContractCodeCostInputs costInputs) Value of thecostInputsfield.voidsetExt(ExtensionPoint ext) Value of theextfield.toJson()Serializes this value to JSON.toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
ContractCodeEntryV1
public ContractCodeEntryV1() -
ContractCodeEntryV1
Creates a newContractCodeEntryV1instance.- Parameters:
ext- theextfield valuecostInputs- thecostInputsfield 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 ContractCodeEntry.ContractCodeEntryExt.ContractCodeEntryV1 decode(XdrDataInputStream stream, int maxDepth) throws IOException - Throws:
IOException
-
decode
public static ContractCodeEntry.ContractCodeEntryExt.ContractCodeEntryV1 decode(XdrDataInputStream stream) throws IOException - Throws:
IOException
-
fromXdrBase64
public static ContractCodeEntry.ContractCodeEntryExt.ContractCodeEntryV1 fromXdrBase64(String xdr) throws IOException - Throws:
IOException
-
fromXdrByteArray
public static ContractCodeEntry.ContractCodeEntryExt.ContractCodeEntryV1 fromXdrByteArray(byte[] xdr) throws IOException - 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
public static ContractCodeEntry.ContractCodeEntryExt.ContractCodeEntryV1.ContractCodeEntryV1Builder builder() -
toBuilder
-
getExt
Value of theextfield.- Returns:
- the
extfield value
-
getCostInputs
Value of thecostInputsfield.- Returns:
- the
costInputsfield value
-
setExt
Value of theextfield.- Parameters:
ext- theextfield value
-
setCostInputs
Value of thecostInputsfield.- Parameters:
costInputs- thecostInputsfield value
-
equals
-
hashCode
public int hashCode() -
toString
-