Enum Class PrimitiveType

java.lang.Object
java.lang.Enum<PrimitiveType>
cool.klass.model.meta.domain.api.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.
  • Enum Constant Details

  • Field Details

    • PRIMITIVE_TYPES

      public static final org.eclipse.collections.api.list.ImmutableList<PrimitiveType> PRIMITIVE_TYPES
    • ID_PRIMITIVE_TYPES

      public static final org.eclipse.collections.api.list.ImmutableList<PrimitiveType> ID_PRIMITIVE_TYPES
  • Method Details

    • values

      public static PrimitiveType[] 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

      public static PrimitiveType valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • byPrettyName

      public static PrimitiveType byPrettyName(String name)
    • getPrettyName

      @Nonnull public String getPrettyName()
    • getDataTypeName

      public String getDataTypeName()
      Specified by:
      getDataTypeName in interface DataType
    • toString

      @Nonnull public String toString()
      Overrides:
      toString in class Enum<PrimitiveType>
    • visit

      public abstract void visit(@Nonnull PrimitiveTypeVisitor visitor)
    • isTemporal

      public boolean isTemporal()
    • isTemporalRange

      public boolean isTemporalRange()
    • isTemporalInstant

      public boolean isTemporalInstant()
    • isId

      public boolean isId()
    • isNumeric

      public boolean isNumeric()
    • getJavaClass

      public Class<?> getJavaClass()
    • getType

      @Nonnull public PrimitiveType getType()
      Specified by:
      getType in interface DataType.DataTypeGetter
      Specified by:
      getType in interface Type.TypeGetter
    • getMacroElement

      public Optional<Element> getMacroElement()
      Specified by:
      getMacroElement in interface Element
    • getName

      public String getName()
      Specified by:
      getName in interface Type