Class CLTypeByteArray
- java.lang.Object
-
- com.casper.sdk.model.clvalue.cltype.AbstractCLType
-
- com.casper.sdk.model.clvalue.cltype.CLTypeByteArray
-
public class CLTypeByteArray extends AbstractCLType
CLType forAbstractCLType.BYTE_ARRAY- Since:
- 0.0.1
- See Also:
AbstractCLType
-
-
Constructor Summary
Constructors Constructor Description CLTypeByteArray()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)intgetLength()java.lang.StringgetTypeName()Required getter for implementations of CLTypeinthashCode()booleanisDeserializable()Indicates if the CLType does not contains and 'Any', or other un-deserializable child type from bytes.voidsetLength(int length)-
Methods inherited from class com.casper.sdk.model.clvalue.cltype.AbstractCLType
getClTypeData
-
-
-
-
Method Detail
-
isDeserializable
public boolean isDeserializable()
Description copied from class:AbstractCLTypeIndicates if the CLType does not contains and 'Any', or other un-deserializable child type from bytes. The reason for this is the 'Any' type does not provide a length for its bytes. This type information is obtained from the JSON metadata.- Specified by:
isDeserializablein classAbstractCLType- Returns:
- true if can be serialized, i.e: a child, or child's child does not contain a deserializable value such as an 'Any' type.
-
getTypeName
public java.lang.String getTypeName()
Description copied from class:AbstractCLTypeRequired getter for implementations of CLType- Specified by:
getTypeNamein classAbstractCLType- Returns:
- the CLType name
-
getLength
public int getLength()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
setLength
public void setLength(int length)
-
-