Class Types.TimeType

All Implemented Interfaces:
Type
Enclosing class:
Types

public static class Types.TimeType extends Type.DateTimeType
The time type in Gravitino.
  • Method Details

    • get

      public static Types.TimeType get()
      Returns:
      The singleton instance of Types.TimeType.
    • of

      public static Types.TimeType of(int precision)
      Parameters:
      precision - The precision of the time type.
      Returns:
      A Types.TimeType with the given precision.
    • precision

      public int precision()
      Returns:
      The precision of the time type.
    • hasPrecisionSet

      public boolean hasPrecisionSet()
      Returns:
      True if the time type has precision set, false otherwise.
    • name

      public Type.Name name()
      Returns:
      The generic name of the type.
    • simpleString

      public String simpleString()
      Returns:
      A readable string representation for the type.
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object