Package cool.klass.model.meta.domain.api
Enum Class PrimitiveType
- All Implemented Interfaces:
DataType,DataType.DataTypeGetter,Element,Type,Type.TypeGetter,Serializable,Comparable<PrimitiveType>,Constable
public enum PrimitiveType
extends Enum<PrimitiveType>
implements Element, DataType, DataType.DataTypeGetter
Predefined native types.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>Nested classes/interfaces inherited from interface cool.klass.model.meta.domain.api.DataType
DataType.DataTypeGetterNested classes/interfaces inherited from interface cool.klass.model.meta.domain.api.Type
Type.TypeGetter -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.eclipse.collections.api.list.ImmutableList<PrimitiveType>static final org.eclipse.collections.api.list.ImmutableList<PrimitiveType> -
Method Summary
Modifier and TypeMethodDescriptionstatic PrimitiveTypebyPrettyName(String name) Class<?>getName()getType()booleanisId()booleanbooleanbooleanbooleantoString()static PrimitiveTypeReturns the enum constant of this class with the specified name.static PrimitiveType[]values()Returns an array containing the constants of this enum class, in the order they are declared.abstract voidvisit(PrimitiveTypeVisitor visitor)
-
Enum Constant Details
-
INTEGER
-
LONG
-
DOUBLE
-
FLOAT
-
BOOLEAN
-
STRING
-
INSTANT
-
LOCAL_DATE
-
TEMPORAL_INSTANT
-
TEMPORAL_RANGE
-
-
Field Details
-
PRIMITIVE_TYPES
-
ID_PRIMITIVE_TYPES
public static final org.eclipse.collections.api.list.ImmutableList<PrimitiveType> ID_PRIMITIVE_TYPES
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
byPrettyName
-
getPrettyName
-
getDataTypeName
- Specified by:
getDataTypeNamein interfaceDataType
-
toString
- Overrides:
toStringin classEnum<PrimitiveType>
-
visit
-
isTemporal
public boolean isTemporal() -
isTemporalRange
public boolean isTemporalRange() -
isTemporalInstant
public boolean isTemporalInstant() -
isId
public boolean isId() -
isNumeric
public boolean isNumeric() -
getJavaClass
-
getType
- Specified by:
getTypein interfaceDataType.DataTypeGetter- Specified by:
getTypein interfaceType.TypeGetter
-
getMacroElement
- Specified by:
getMacroElementin interfaceElement
-
getName
-