Class ModuleBytes
- java.lang.Object
-
- com.casper.sdk.model.deploy.executabledeploy.ModuleBytes
-
- All Implemented Interfaces:
CasperSerializableObject,ExecutableDeployItem,dev.oak3.sbs4j.interfaces.SerializableObject
public class ModuleBytes extends java.lang.Object implements ExecutableDeployItem
Abstract Executable Deploy Item containing the ModuleBytes of the contract.- Since:
- 0.0.1
- See Also:
ExecutableDeployItem
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classModuleBytes.ModuleBytesBuilder
-
Constructor Summary
Constructors Constructor Description ModuleBytes()ModuleBytes(byte[] bytes, java.util.List<NamedArg<?>> args)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ModuleBytes.ModuleBytesBuilderbuilder()java.util.List<NamedArg<?>>getArgs()byte[]getBytes()Module bytesbytegetOrder()ExecutableDeployItemorder 0voidserialize(dev.oak3.sbs4j.SerializerBuffer ser, Target target)Implements the ModuleBytes encodervoidsetArgs(java.util.List<NamedArg<?>> args)voidsetBytes(byte[] bytes)Module bytes-
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
-
ModuleBytes
public ModuleBytes(byte[] bytes, java.util.List<NamedArg<?>> args)
-
ModuleBytes
public ModuleBytes()
-
-
Method Detail
-
getOrder
public byte getOrder()
ExecutableDeployItemorder 0- Specified by:
getOrderin interfaceExecutableDeployItem
-
serialize
public void serialize(dev.oak3.sbs4j.SerializerBuffer ser, Target target) throws dev.oak3.sbs4j.exception.ValueSerializationException, NoSuchTypeExceptionImplements the ModuleBytes encoder- 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 ModuleBytes.ModuleBytesBuilder builder()
-
getBytes
public byte[] getBytes()
Module bytes
-
setBytes
public void setBytes(byte[] bytes)
Module bytes
-
-