Class CLValueOption
- java.lang.Object
-
- com.syntifi.casper.sdk.model.clvalue.AbstractCLValue<java.util.Optional<AbstractCLValue<?,?>>,CLTypeOption>
-
- com.syntifi.casper.sdk.model.clvalue.CLValueOption
-
- All Implemented Interfaces:
DecodableValue,EncodableValue
public class CLValueOption extends AbstractCLValue<java.util.Optional<AbstractCLValue<?,?>>,CLTypeOption>
Casper Option CLValue implementation- Since:
- 0.0.1
- See Also:
AbstractCLValue
-
-
Constructor Summary
Constructors Constructor Description CLValueOption()CLValueOption(CLTypeOption clType)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)voiddecode(CLValueDecoder clvd)Called when the object's values must be decoded after deserializingvoidencode(CLValueEncoder clve, boolean encodeType)Called when the object's values must be encoded for serializingbooleanequals(java.lang.Object o)CLTypeOptiongetClType()inthashCode()voidsetClType(CLTypeOption clType)-
Methods inherited from class com.syntifi.casper.sdk.model.clvalue.AbstractCLValue
encodeType, getBytes, getJsonBytes, getParsed, getValue, setBytes, setJsonBytes, setParsed, setValue
-
-
-
-
Constructor Detail
-
CLValueOption
public CLValueOption()
-
CLValueOption
public CLValueOption(java.util.Optional<AbstractCLValue<?,?>> value)
-
CLValueOption
public CLValueOption(CLTypeOption clType)
-
-
Method Detail
-
encode
public void encode(CLValueEncoder clve, boolean encodeType) throws java.io.IOException, NoSuchTypeException, CLValueEncodeException
Description copied from interface:EncodableValueCalled when the object's values must be encoded for serializing- Specified by:
encodein interfaceEncodableValue- Specified by:
encodein classAbstractCLValue<java.util.Optional<AbstractCLValue<?,?>>,CLTypeOption>- Parameters:
clve- the encoder to be usedencodeType- append encoded type?- Throws:
java.io.IOException- thrown if an IO error occursNoSuchTypeException- thrown if type not foundCLValueEncodeException- thrown if failed to encode a cl value
-
decode
public void decode(CLValueDecoder clvd) throws java.io.IOException, CLValueDecodeException, DynamicInstanceException, NoSuchTypeException
Description copied from interface:DecodableValueCalled when the object's values must be decoded after deserializing- Parameters:
clvd- the decoder to be used- Throws:
java.io.IOException- thrown if an IO error occursCLValueDecodeException- thrown if failed to decode a cl valueDynamicInstanceException- thrown if it could not instantiate a typeNoSuchTypeException- thrown if type not found
-
getClType
public CLTypeOption getClType()
- Specified by:
getClTypein classAbstractCLValue<java.util.Optional<AbstractCLValue<?,?>>,CLTypeOption>
-
setClType
public void setClType(CLTypeOption clType)
- Specified by:
setClTypein classAbstractCLValue<java.util.Optional<AbstractCLValue<?,?>>,CLTypeOption>
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classAbstractCLValue<java.util.Optional<AbstractCLValue<?,?>>,CLTypeOption>
-
canEqual
protected boolean canEqual(java.lang.Object other)
- Overrides:
canEqualin classAbstractCLValue<java.util.Optional<AbstractCLValue<?,?>>,CLTypeOption>
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAbstractCLValue<java.util.Optional<AbstractCLValue<?,?>>,CLTypeOption>
-
-