Class CLValueTuple1
- java.lang.Object
-
- com.syntifi.casper.sdk.model.clvalue.AbstractCLValue<T,P>
-
- com.syntifi.casper.sdk.model.clvalue.AbstractCLValueWithChildren<org.javatuples.Unit<? extends AbstractCLValue<?,?>>,CLTypeTuple1>
-
- com.syntifi.casper.sdk.model.clvalue.CLValueTuple1
-
- All Implemented Interfaces:
DecodableValue
,EncodableValue
public class CLValueTuple1 extends AbstractCLValueWithChildren<org.javatuples.Unit<? extends AbstractCLValue<?,?>>,CLTypeTuple1>
Casper Tuple1 CLValue implementation- Since:
- 0.0.1
- See Also:
AbstractCLValue
-
-
Constructor Summary
Constructors Constructor Description CLValueTuple1()
CLValueTuple1(org.javatuples.Unit<? extends AbstractCLValue<?,?>> value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(java.lang.Object other)
void
decode(CLValueDecoder clvd)
Called when the object's values must be decoded after deserializingvoid
encode(CLValueEncoder clve, boolean encodeType)
Called when the object's values must be encoded for serializingboolean
equals(java.lang.Object o)
CLTypeTuple1
getClType()
int
hashCode()
protected void
setChildTypes()
void
setClType(CLTypeTuple1 clType)
-
Methods inherited from class com.syntifi.casper.sdk.model.clvalue.AbstractCLValue
encodeType, getBytes, getJsonBytes, getParsed, getValue, setBytes, setJsonBytes, setParsed, setValue
-
-
-
-
Constructor Detail
-
CLValueTuple1
public CLValueTuple1(org.javatuples.Unit<? extends AbstractCLValue<?,?>> value)
-
CLValueTuple1
public CLValueTuple1()
-
-
Method Detail
-
encode
public void encode(CLValueEncoder clve, boolean encodeType) throws java.io.IOException, NoSuchTypeException, CLValueEncodeException
Description copied from interface:EncodableValue
Called when the object's values must be encoded for serializing- Specified by:
encode
in interfaceEncodableValue
- Specified by:
encode
in classAbstractCLValue<org.javatuples.Unit<? extends AbstractCLValue<?,?>>,CLTypeTuple1>
- 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:DecodableValue
Called 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
-
setChildTypes
protected void setChildTypes()
- Specified by:
setChildTypes
in classAbstractCLValueWithChildren<org.javatuples.Unit<? extends AbstractCLValue<?,?>>,CLTypeTuple1>
-
getClType
public CLTypeTuple1 getClType()
- Specified by:
getClType
in classAbstractCLValue<org.javatuples.Unit<? extends AbstractCLValue<?,?>>,CLTypeTuple1>
-
setClType
public void setClType(CLTypeTuple1 clType)
- Specified by:
setClType
in classAbstractCLValue<org.javatuples.Unit<? extends AbstractCLValue<?,?>>,CLTypeTuple1>
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classAbstractCLValueWithChildren<org.javatuples.Unit<? extends AbstractCLValue<?,?>>,CLTypeTuple1>
-
canEqual
protected boolean canEqual(java.lang.Object other)
- Overrides:
canEqual
in classAbstractCLValueWithChildren<org.javatuples.Unit<? extends AbstractCLValue<?,?>>,CLTypeTuple1>
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classAbstractCLValueWithChildren<org.javatuples.Unit<? extends AbstractCLValue<?,?>>,CLTypeTuple1>
-
-