Class PrimitiveType

java.lang.Object
smile.data.type.PrimitiveType
All Implemented Interfaces:
Serializable, DataType
Direct Known Subclasses:
BooleanType, ByteType, CharType, DoubleType, FloatType, IntType, LongType, ShortType

public abstract class PrimitiveType extends Object implements DataType
Primitive data type.
See Also:
  • Method Details

    • id

      public DataType.ID id()
      Description copied from interface: DataType
      Returns the type ID enum.
      Specified by:
      id in interface DataType
      Returns:
      the type ID enum.
    • name

      public String name()
      Description copied from interface: DataType
      Returns the type name used in external catalogs. DataType.of(name()) should return the same type.
      Specified by:
      name in interface DataType
      Returns:
      the type name used in external catalogs.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • isNullable

      public boolean isNullable()
      Description copied from interface: DataType
      Returns true if the data may be null.
      Specified by:
      isNullable in interface DataType
      Returns:
      true if the data may be null.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object