Class CLValueKey
- java.lang.Object
-
- com.syntifi.casper.sdk.model.clvalue.AbstractCLValue<Key,CLTypeKey>
-
- com.syntifi.casper.sdk.model.clvalue.CLValueKey
-
- All Implemented Interfaces:
DecodableValue,EncodableValue
public class CLValueKey extends AbstractCLValue<Key,CLTypeKey>
Casper Key CLValue implementation- Since:
- 0.0.1
- See Also:
AbstractCLValue
-
-
Constructor Summary
Constructors Constructor Description CLValueKey()CLValueKey(Key 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)CLTypeKeygetClType()protected java.lang.StringgetJsonClType()inthashCode()voidsetClType(CLTypeKey clType)protected voidsetJsonClType(CLTypeKey clType)-
Methods inherited from class com.syntifi.casper.sdk.model.clvalue.AbstractCLValue
encodeType, getBytes, getJsonBytes, getParsed, getValue, setBytes, setJsonBytes, setParsed, setValue
-
-
-
-
Constructor Detail
-
CLValueKey
public CLValueKey(Key value)
-
CLValueKey
public CLValueKey()
-
-
Method Detail
-
setJsonClType
@ExcludeFromJacocoGeneratedReport protected void setJsonClType(CLTypeKey clType)
-
getJsonClType
@ExcludeFromJacocoGeneratedReport protected java.lang.String getJsonClType()
-
encode
public void encode(CLValueEncoder clve, boolean encodeType) throws java.io.IOException, NoSuchTypeException
Description copied from interface:EncodableValueCalled when the object's values must be encoded for serializing- Specified by:
encodein interfaceEncodableValue- Specified by:
encodein classAbstractCLValue<Key,CLTypeKey>- Parameters:
clve- the encoder to be usedencodeType- append encoded type?- Throws:
java.io.IOException- thrown if an IO error occursNoSuchTypeException- thrown if type not found
-
decode
public void decode(CLValueDecoder clvd) throws java.io.IOException, CLValueDecodeException
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 value
-
getClType
public CLTypeKey getClType()
- Specified by:
getClTypein classAbstractCLValue<Key,CLTypeKey>
-
setClType
public void setClType(CLTypeKey clType)
- Specified by:
setClTypein classAbstractCLValue<Key,CLTypeKey>
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classAbstractCLValue<Key,CLTypeKey>
-
canEqual
protected boolean canEqual(java.lang.Object other)
- Overrides:
canEqualin classAbstractCLValue<Key,CLTypeKey>
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAbstractCLValue<Key,CLTypeKey>
-
-