Package com.casper.sdk.model.clvalue
Class CLValueMap
- java.lang.Object
-
- com.casper.sdk.model.clvalue.AbstractCLValue<T,P>
-
- com.casper.sdk.model.clvalue.AbstractCLValueWithChildren<java.util.Map<? extends AbstractCLValue<?,?>,? extends AbstractCLValue<?,?>>,CLTypeMap>
-
- com.casper.sdk.model.clvalue.CLValueMap
-
- All Implemented Interfaces:
CasperDeserializableObject,CasperSerializableObject,dev.oak3.sbs4j.interfaces.DeserializableObject,dev.oak3.sbs4j.interfaces.SerializableObject
public class CLValueMap extends AbstractCLValueWithChildren<java.util.Map<? extends AbstractCLValue<?,?>,? extends AbstractCLValue<?,?>>,CLTypeMap>
Casper Map CLValue implementation- Since:
- 0.0.1
- See Also:
AbstractCLValue
-
-
Constructor Summary
Constructors Constructor Description CLValueMap()CLValueMap(java.util.Map<? extends AbstractCLValue<?,?>,? 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)booleanequals(java.lang.Object o)This needed to be customized to ensure equality is being checked correctly.CLTypeMapgetClType()inthashCode()protected voidserializeValue(dev.oak3.sbs4j.SerializerBuffer ser)protected voidsetChildTypes(java.util.Map<? extends AbstractCLValue<?,?>,? extends AbstractCLValue<?,?>> value)voidsetClType(CLTypeMap clType)java.lang.StringtoString()-
Methods inherited from class com.casper.sdk.model.clvalue.AbstractCLValueWithChildren
childTypesSet, populateChildTypesFromParent, setJsonBytes
-
Methods inherited from class com.casper.sdk.model.clvalue.AbstractCLValue
clone, createInstanceFromBytes, deserialize, deserialize, getBytes, getJsonBytes, getParsed, getValue, serialize, serializePrefixWithLength, setBytes, setParsed, setValue
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.casper.sdk.model.clvalue.serde.CasperSerializableObject
serialize
-
-
-
-
Constructor Detail
-
CLValueMap
public CLValueMap(java.util.Map<? extends AbstractCLValue<?,?>,? extends AbstractCLValue<?,?>> value) throws dev.oak3.sbs4j.exception.ValueSerializationException
- Throws:
dev.oak3.sbs4j.exception.ValueSerializationException
-
CLValueMap
public CLValueMap()
-
-
Method Detail
-
setClType
public void setClType(CLTypeMap clType)
- Specified by:
setClTypein classAbstractCLValue<java.util.Map<? extends AbstractCLValue<?,?>,? extends AbstractCLValue<?,?>>,CLTypeMap>
-
serializeValue
protected void serializeValue(dev.oak3.sbs4j.SerializerBuffer ser) throws dev.oak3.sbs4j.exception.ValueSerializationException- Specified by:
serializeValuein classAbstractCLValue<java.util.Map<? extends AbstractCLValue<?,?>,? extends AbstractCLValue<?,?>>,CLTypeMap>- Throws:
dev.oak3.sbs4j.exception.ValueSerializationException
-
deserializeCustom
public void deserializeCustom(dev.oak3.sbs4j.DeserializerBuffer deser) throws java.lang.Exception- Specified by:
deserializeCustomin classAbstractCLValue<java.util.Map<? extends AbstractCLValue<?,?>,? extends AbstractCLValue<?,?>>,CLTypeMap>- Throws:
java.lang.Exception
-
setChildTypes
protected void setChildTypes(java.util.Map<? extends AbstractCLValue<?,?>,? extends AbstractCLValue<?,?>> value)
- Specified by:
setChildTypesin classAbstractCLValueWithChildren<java.util.Map<? extends AbstractCLValue<?,?>,? extends AbstractCLValue<?,?>>,CLTypeMap>
-
equals
public boolean equals(java.lang.Object o)
This needed to be customized to ensure equality is being checked correctly. The java Map equals method tries to get the "other" map entry's value by using "this" key object, which then fails to find the object since they are "different" and returns always null.- Overrides:
equalsin classAbstractCLValueWithChildren<java.util.Map<? extends AbstractCLValue<?,?>,? extends AbstractCLValue<?,?>>,CLTypeMap>- Parameters:
o- the object to compare- Returns:
- true if the objects are equal, false otherwise
-
canEqual
protected boolean canEqual(java.lang.Object other)
- Overrides:
canEqualin classAbstractCLValueWithChildren<java.util.Map<? extends AbstractCLValue<?,?>,? extends AbstractCLValue<?,?>>,CLTypeMap>
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAbstractCLValueWithChildren<java.util.Map<? extends AbstractCLValue<?,?>,? extends AbstractCLValue<?,?>>,CLTypeMap>
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getClType
public CLTypeMap getClType()
- Specified by:
getClTypein classAbstractCLValue<java.util.Map<? extends AbstractCLValue<?,?>,? extends AbstractCLValue<?,?>>,CLTypeMap>
-
-