Package com.casper.sdk.model.clvalue
Class CLValueTuple1
- java.lang.Object
-
- com.casper.sdk.model.clvalue.AbstractCLValue<T,P>
-
- com.casper.sdk.model.clvalue.AbstractCLValueWithChildren<org.javatuples.Unit<? extends AbstractCLValue<?,?>>,CLTypeTuple1>
-
- com.casper.sdk.model.clvalue.CLValueTuple1
-
- All Implemented Interfaces:
CasperDeserializableObject,CasperSerializableObject,dev.oak3.sbs4j.interfaces.DeserializableObject,dev.oak3.sbs4j.interfaces.SerializableObject
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 booleancanEqual(java.lang.Object other)voiddeserializeCustom(dev.oak3.sbs4j.DeserializerBuffer deser)protected voidencodeType(dev.oak3.sbs4j.SerializerBuffer ser)booleanequals(java.lang.Object o)CLTypeTuple1getClType()inthashCode()voidserialize(dev.oak3.sbs4j.SerializerBuffer ser, Target target)Called when the object's values must be serializedprotected voidsetChildTypes(org.javatuples.Unit<? extends AbstractCLValue<?,?>> value)voidsetClType(CLTypeTuple1 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, 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
-
CLValueTuple1
public CLValueTuple1(org.javatuples.Unit<? extends AbstractCLValue<?,?>> value) throws dev.oak3.sbs4j.exception.ValueSerializationException
- Throws:
dev.oak3.sbs4j.exception.ValueSerializationException
-
CLValueTuple1
public CLValueTuple1()
-
-
Method Detail
-
setClType
public void setClType(CLTypeTuple1 clType)
- Specified by:
setClTypein classAbstractCLValue<org.javatuples.Unit<? extends AbstractCLValue<?,?>>,CLTypeTuple1>
-
serialize
public void serialize(dev.oak3.sbs4j.SerializerBuffer ser, Target target) throws NoSuchTypeException, dev.oak3.sbs4j.exception.ValueSerializationExceptionDescription copied from interface:CasperSerializableObjectCalled when the object's values must be serialized- Specified by:
serializein interfaceCasperSerializableObject- Specified by:
serializein classAbstractCLValue<org.javatuples.Unit<? extends AbstractCLValue<?,?>>,CLTypeTuple1>- 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
-
encodeType
protected void encodeType(dev.oak3.sbs4j.SerializerBuffer ser) throws NoSuchTypeException- Overrides:
encodeTypein classAbstractCLValue<org.javatuples.Unit<? extends AbstractCLValue<?,?>>,CLTypeTuple1>- Throws:
NoSuchTypeException
-
deserializeCustom
public void deserializeCustom(dev.oak3.sbs4j.DeserializerBuffer deser) throws java.lang.Exception- Specified by:
deserializeCustomin classAbstractCLValue<org.javatuples.Unit<? extends AbstractCLValue<?,?>>,CLTypeTuple1>- Throws:
java.lang.Exception
-
setChildTypes
protected void setChildTypes(org.javatuples.Unit<? extends AbstractCLValue<?,?>> value)
- Specified by:
setChildTypesin classAbstractCLValueWithChildren<org.javatuples.Unit<? extends AbstractCLValue<?,?>>,CLTypeTuple1>
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getClType
public CLTypeTuple1 getClType()
- Specified by:
getClTypein classAbstractCLValue<org.javatuples.Unit<? extends AbstractCLValue<?,?>>,CLTypeTuple1>
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classAbstractCLValueWithChildren<org.javatuples.Unit<? extends AbstractCLValue<?,?>>,CLTypeTuple1>
-
canEqual
protected boolean canEqual(java.lang.Object other)
- Overrides:
canEqualin classAbstractCLValueWithChildren<org.javatuples.Unit<? extends AbstractCLValue<?,?>>,CLTypeTuple1>
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAbstractCLValueWithChildren<org.javatuples.Unit<? extends AbstractCLValue<?,?>>,CLTypeTuple1>
-
-