Package com.casper.sdk.model.deploy
Class NamedArg<P extends AbstractCLType>
- java.lang.Object
-
- com.casper.sdk.model.deploy.NamedArg<P>
-
- All Implemented Interfaces:
CasperSerializableObject,dev.oak3.sbs4j.interfaces.SerializableObject
public class NamedArg<P extends AbstractCLType> extends java.lang.Object implements CasperSerializableObject
Named arguments to a contract- Since:
- 0.0.1
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNamedArg.NamedArgBuilder<P extends AbstractCLType>
-
Constructor Summary
Constructors Constructor Description NamedArg()NamedArg(java.lang.String type, AbstractCLValue<?,P> clValue)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <P extends AbstractCLType>
NamedArg.NamedArgBuilder<P>builder()AbstractCLValue<?,P>getClValue()The second value in the array is a CLValue typejava.lang.StringgetType()The first value in the array is the type of the argvoidserialize(dev.oak3.sbs4j.SerializerBuffer ser, Target target)Called when the object's values must be serializedvoidsetClValue(AbstractCLValue<?,P> clValue)The second value in the array is a CLValue typevoidsetType(java.lang.String type)The first value in the array is the type of the arg-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.casper.sdk.model.clvalue.serde.CasperSerializableObject
serialize
-
-
-
-
Constructor Detail
-
NamedArg
public NamedArg()
-
NamedArg
public NamedArg(java.lang.String type, AbstractCLValue<?,P> clValue)
-
-
Method Detail
-
serialize
public void serialize(dev.oak3.sbs4j.SerializerBuffer ser, Target target) throws dev.oak3.sbs4j.exception.ValueSerializationException, NoSuchTypeExceptionDescription copied from interface:CasperSerializableObjectCalled when the object's values must be serialized- Specified by:
serializein interfaceCasperSerializableObject- Parameters:
ser- the serializer to be usedtarget- target serialization standard- Throws:
dev.oak3.sbs4j.exception.ValueSerializationException- exception holding information of failure to serialize a valueNoSuchTypeException
-
builder
public static <P extends AbstractCLType> NamedArg.NamedArgBuilder<P> builder()
-
getType
public java.lang.String getType()
The first value in the array is the type of the arg
-
getClValue
public AbstractCLValue<?,P> getClValue()
The second value in the array is a CLValue type
-
setType
public void setType(java.lang.String type)
The first value in the array is the type of the arg
-
setClValue
public void setClValue(AbstractCLValue<?,P> clValue)
The second value in the array is a CLValue type
-
-