Class TimeType

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

public class TimeType extends Object implements DataType
Time data type.
See Also:
  • Constructor Details

    • TimeType

      public TimeType(String pattern)
      Constructor.
      Parameters:
      pattern - Patterns for formatting and parsing. Patterns are based on a simple sequence of letters and symbols. For example, "d MMM uuuu" will format 2011-12-03 as '3 Dec 2011'.
  • Method Details

    • 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.
    • 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
    • toString

      public String toString(Object o)
      Description copied from interface: DataType
      Returns the string representation of a value of the type.
      Specified by:
      toString in interface DataType
      Parameters:
      o - the value.
      Returns:
      the string representation
    • valueOf

      public LocalTime 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