Package com.casper.sdk.model.clvalue
Class CLValueResult
- java.lang.Object
-
- com.casper.sdk.model.clvalue.AbstractCLValue<CLValueResult.Result,CLTypeResult>
-
- com.casper.sdk.model.clvalue.CLValueResult
-
- All Implemented Interfaces:
CasperDeserializableObject,CasperSerializableObject,dev.oak3.sbs4j.interfaces.DeserializableObject,dev.oak3.sbs4j.interfaces.SerializableObject
public class CLValueResult extends AbstractCLValue<CLValueResult.Result,CLTypeResult>
Casper Result CLValue implementation- Since:
- 0.0.1
- See Also:
AbstractCLValue
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classCLValueResult.Result`Result` with `Ok` and `Err` variants of `CLType`s.
-
Constructor Summary
Constructors Constructor Description CLValueResult()CLValueResult(AbstractCLValue<?,?> ok, AbstractCLValue<?,?> err)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(java.lang.Object other)voiddeserializeCustom(dev.oak3.sbs4j.DeserializerBuffer deser)booleanequals(java.lang.Object o)CLTypeResultgetClType()inthashCode()voidserialize(dev.oak3.sbs4j.SerializerBuffer ser, Target target)Called when the object's values must be serializedprotected voidsetChildTypes(AbstractCLValue<?,?> ok, AbstractCLValue<?,?> err)voidsetClType(CLTypeResult clType)-
Methods inherited from class com.casper.sdk.model.clvalue.AbstractCLValue
createInstanceFromBytes, deserialize, deserialize, encodeType, getBytes, getJsonBytes, getParsed, getValue, serializePrefixWithLength, setBytes, setJsonBytes, setParsed, setValue
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.casper.sdk.model.clvalue.serde.CasperSerializableObject
serialize
-
-
-
-
Constructor Detail
-
CLValueResult
public CLValueResult(AbstractCLValue<?,?> ok, AbstractCLValue<?,?> err) throws dev.oak3.sbs4j.exception.ValueSerializationException
- Throws:
dev.oak3.sbs4j.exception.ValueSerializationException
-
CLValueResult
public CLValueResult()
-
-
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- Specified by:
serializein classAbstractCLValue<CLValueResult.Result,CLTypeResult>- 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
-
deserializeCustom
public void deserializeCustom(dev.oak3.sbs4j.DeserializerBuffer deser) throws java.lang.Exception- Specified by:
deserializeCustomin classAbstractCLValue<CLValueResult.Result,CLTypeResult>- Throws:
java.lang.Exception
-
setChildTypes
protected void setChildTypes(AbstractCLValue<?,?> ok, AbstractCLValue<?,?> err)
-
getClType
public CLTypeResult getClType()
- Specified by:
getClTypein classAbstractCLValue<CLValueResult.Result,CLTypeResult>
-
setClType
public void setClType(CLTypeResult clType)
- Specified by:
setClTypein classAbstractCLValue<CLValueResult.Result,CLTypeResult>
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classAbstractCLValue<CLValueResult.Result,CLTypeResult>
-
canEqual
protected boolean canEqual(java.lang.Object other)
- Overrides:
canEqualin classAbstractCLValue<CLValueResult.Result,CLTypeResult>
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAbstractCLValue<CLValueResult.Result,CLTypeResult>
-
-