Class AbstractCLTypeBasic
- java.lang.Object
-
- com.casper.sdk.model.clvalue.cltype.AbstractCLType
-
- com.casper.sdk.model.clvalue.cltype.AbstractCLTypeBasic
-
- Direct Known Subclasses:
CLTypeAny,CLTypeBool,CLTypeI32,CLTypeI64,CLTypeKey,CLTypePublicKey,CLTypeString,CLTypeU128,CLTypeU256,CLTypeU32,CLTypeU512,CLTypeU64,CLTypeU8,CLTypeUnit,CLTypeURef
public abstract class AbstractCLTypeBasic extends AbstractCLType
Base class for all types which are simple mappings- Since:
- 0.0.1
-
-
Constructor Summary
Constructors Modifier Constructor Description AbstractCLTypeBasic()protectedAbstractCLTypeBasic(java.lang.String typeName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisDeserializable()Indicates if the CLType does not contain an 'Any', or other un-deserializable child type from bytes.-
Methods inherited from class com.casper.sdk.model.clvalue.cltype.AbstractCLType
getClTypeData, getTypeName, serialize
-
-
-
-
Method Detail
-
isDeserializable
public boolean isDeserializable()
Description copied from class:AbstractCLTypeIndicates if the CLType does not contain an '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.
-
-