Class CLValueByteArray
- java.lang.Object
-
- com.syntifi.casper.sdk.model.clvalue.AbstractCLValue<byte[],CLTypeByteArray>
-
- com.syntifi.casper.sdk.model.clvalue.CLValueByteArray
-
- All Implemented Interfaces:
DecodableValue
,EncodableValue
public class CLValueByteArray extends AbstractCLValue<byte[],CLTypeByteArray>
Casper ByteArray CLValue implementation- Since:
- 0.0.1
- See Also:
AbstractCLValue
-
-
Constructor Summary
Constructors Constructor Description CLValueByteArray()
CLValueByteArray(byte[] 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)
CLTypeByteArray
getClType()
int
hashCode()
void
setClType(CLTypeByteArray clType)
-
Methods inherited from class com.syntifi.casper.sdk.model.clvalue.AbstractCLValue
encodeType, getBytes, getJsonBytes, getParsed, getValue, setBytes, setJsonBytes, setParsed, setValue
-
-
-
-
Method Detail
-
encode
public void encode(CLValueEncoder clve, boolean encodeType) throws java.io.IOException, NoSuchTypeException
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<byte[],CLTypeByteArray>
- 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: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 value
-
equals
@ExcludeFromJacocoGeneratedReport public boolean equals(java.lang.Object o)
- Overrides:
equals
in classAbstractCLValue<byte[],CLTypeByteArray>
-
canEqual
@ExcludeFromJacocoGeneratedReport protected boolean canEqual(java.lang.Object other)
- Overrides:
canEqual
in classAbstractCLValue<byte[],CLTypeByteArray>
-
hashCode
@ExcludeFromJacocoGeneratedReport public int hashCode()
- Overrides:
hashCode
in classAbstractCLValue<byte[],CLTypeByteArray>
-
getClType
public CLTypeByteArray getClType()
- Specified by:
getClType
in classAbstractCLValue<byte[],CLTypeByteArray>
-
setClType
public void setClType(CLTypeByteArray clType)
- Specified by:
setClType
in classAbstractCLValue<byte[],CLTypeByteArray>
-
-