Package com.casper.sdk.model.clvalue
Class CLValueOption
- java.lang.Object
-
- com.casper.sdk.model.clvalue.AbstractCLValue<T,P>
-
- com.casper.sdk.model.clvalue.AbstractCLValueWithChildren<java.util.Optional<AbstractCLValue<?,?>>,CLTypeOption>
-
- com.casper.sdk.model.clvalue.CLValueOption
-
- All Implemented Interfaces:
CasperDeserializableObject,CasperSerializableObject,dev.oak3.sbs4j.interfaces.DeserializableObject,dev.oak3.sbs4j.interfaces.SerializableObject
public class CLValueOption extends AbstractCLValueWithChildren<java.util.Optional<AbstractCLValue<?,?>>,CLTypeOption>
Casper Option CLValue implementation- Since:
- 0.0.1
- See Also:
AbstractCLValue
-
-
Constructor Summary
Constructors Constructor Description CLValueOption()CLValueOption(java.util.Optional<AbstractCLValue<?,?>> value)
-
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)CLTypeOptiongetClType()inthashCode()voidserialize(dev.oak3.sbs4j.SerializerBuffer ser, Target target)Called when the object's values must be serializedprotected voidsetChildTypes(java.util.Optional<AbstractCLValue<?,?>> value)voidsetClType(CLTypeOption clType)java.lang.StringtoString()-
Methods inherited from class com.casper.sdk.model.clvalue.AbstractCLValueWithChildren
childTypesSet, setJsonBytes
-
Methods inherited from class com.casper.sdk.model.clvalue.AbstractCLValue
createInstanceFromBytes, deserialize, deserialize, encodeType, getBytes, getJsonBytes, getParsed, getValue, serializePrefixWithLength, setBytes, setParsed, setValue
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.casper.sdk.model.clvalue.serde.CasperSerializableObject
serialize
-
-
-
-
Constructor Detail
-
CLValueOption
public CLValueOption(java.util.Optional<AbstractCLValue<?,?>> value) throws dev.oak3.sbs4j.exception.ValueSerializationException
- Throws:
dev.oak3.sbs4j.exception.ValueSerializationException
-
CLValueOption
public CLValueOption()
-
-
Method Detail
-
setClType
public void setClType(CLTypeOption clType)
- Specified by:
setClTypein classAbstractCLValue<java.util.Optional<AbstractCLValue<?,?>>,CLTypeOption>
-
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<java.util.Optional<AbstractCLValue<?,?>>,CLTypeOption>- 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<java.util.Optional<AbstractCLValue<?,?>>,CLTypeOption>- Throws:
java.lang.Exception
-
setChildTypes
protected void setChildTypes(java.util.Optional<AbstractCLValue<?,?>> value)
- Specified by:
setChildTypesin classAbstractCLValueWithChildren<java.util.Optional<AbstractCLValue<?,?>>,CLTypeOption>
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getClType
public CLTypeOption getClType()
- Specified by:
getClTypein classAbstractCLValue<java.util.Optional<AbstractCLValue<?,?>>,CLTypeOption>
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classAbstractCLValueWithChildren<java.util.Optional<AbstractCLValue<?,?>>,CLTypeOption>
-
canEqual
protected boolean canEqual(java.lang.Object other)
- Overrides:
canEqualin classAbstractCLValueWithChildren<java.util.Optional<AbstractCLValue<?,?>>,CLTypeOption>
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAbstractCLValueWithChildren<java.util.Optional<AbstractCLValue<?,?>>,CLTypeOption>
-
-