Interface CasperSerializableObject
-
- All Superinterfaces:
dev.oak3.sbs4j.interfaces.SerializableObject
- All Known Subinterfaces:
ExecutableDeployItem,ExecutableDeployItemWithEntryPoint
- All Known Implementing Classes:
AbstractCLValue,AbstractCLValueWithChildren,AbstractSerializedKeyTaggedHex,Approval,CLValueAny,CLValueBool,CLValueByteArray,CLValueFixedList,CLValueI32,CLValueI64,CLValueKey,CLValueList,CLValueMap,CLValueOption,CLValuePublicKey,CLValueResult,CLValueString,CLValueTuple1,CLValueTuple2,CLValueTuple3,CLValueU128,CLValueU256,CLValueU32,CLValueU512,CLValueU64,CLValueU8,CLValueUnit,CLValueURef,Deploy,DeployHeader,Digest,Key,ModuleBytes,NamedArg,PublicKey,Signature,StoredContractByHash,StoredContractByName,StoredVersionedContractByHash,StoredVersionedContractByName,Transfer,Ttl
public interface CasperSerializableObject extends dev.oak3.sbs4j.interfaces.SerializableObjectDefines an object as being capable of encoding withSerializerBuffer- Since:
- 0.2.2
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidserialize(dev.oak3.sbs4j.SerializerBuffer ser)Called when the object's values must be serializedvoidserialize(dev.oak3.sbs4j.SerializerBuffer ser, Target target)Called when the object's values must be serialized
-
-
-
Method Detail
-
serialize
void serialize(dev.oak3.sbs4j.SerializerBuffer ser, Target target) throws dev.oak3.sbs4j.exception.ValueSerializationException, NoSuchTypeExceptionCalled when the object's values must be serialized- 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
-
serialize
default void serialize(dev.oak3.sbs4j.SerializerBuffer ser) throws dev.oak3.sbs4j.exception.ValueSerializationExceptionCalled when the object's values must be serializedAllows to use the default serialize with the custom casper serialize signature, defaulting encodeType to false
- Specified by:
serializein interfacedev.oak3.sbs4j.interfaces.SerializableObject- Parameters:
ser- the serializer to be used- Throws:
dev.oak3.sbs4j.exception.ValueSerializationException- exception holding information of failure to serialize a value
-
-