Class BooleanType

java.lang.Object
smile.data.type.BooleanType
All Implemented Interfaces:
Serializable, DataType

public class BooleanType extends Object implements DataType
Boolean data type.
See Also:
  • Method Details

    • isBoolean

      public boolean isBoolean()
      Description copied from interface: DataType
      Returns true if the type is boolean or Boolean.
      Specified by:
      isBoolean in interface DataType
      Returns:
      true if the type is boolean or Boolean.
    • name

      public String name()
      Description copied from interface: DataType
      Returns the type name used in external catalogs. DataType.of(name()) should returns the same type.
      Specified by:
      name in interface DataType
      Returns:
      the type name used in external catalogs.
    • 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.
    • toString

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

      public Boolean valueOf(String s)
      Description copied from interface: DataType
      Returns the value from its string representation.
      Specified by:
      valueOf in interface DataType
      Parameters:
      s - the string representation of a value of this type.
      Returns:
      the value.
    • equals

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