com.holonplatform.core.temporal

## Enum TemporalType

- java.lang.Object
- - java.lang.Enum<TemporalType>
  - - com.holonplatform.core.temporal.TemporalType

- All Implemented Interfaces:
    Serializable, Comparable<TemporalType>

      public enum TemporalType
      extends Enum<TemporalType>

  Enumeration of temporal macro-types.
  Since:
    5.0.0

- - ### Enum Constant Summary

    Enum Constants
    Enum Constant and Description
    `DATE` Temporal representing only a date
    `DATE_TIME` Temporal representing a date and time
    `TIME` Temporal representing only a time

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static TemporalType` | `getTemporalType(Temporal temporal)` Get temporal macro-type of given `temporal` instance
    `static TemporalType` | `valueOf(String name)` Returns the enum constant of this type with the specified name.
    `static TemporalType[]` | `values()` Returns an array containing the constants of this enum type, in the order they are declared.

    - ### Methods inherited from class java.lang.Enum

      `compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf`

    - ### Methods inherited from class java.lang.Object

      `getClass, notify, notifyAll, wait, wait, wait`

- - ### Enum Constant Detail

    - #### DATE

          public static final TemporalType DATE

      Temporal representing only a date

    - #### TIME

          public static final TemporalType TIME

      Temporal representing only a time

    - #### DATE_TIME

          public static final TemporalType DATE_TIME

      Temporal representing a date and time

  - ### Method Detail

    - #### values

          public static TemporalType[] values()

      Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:

          for (TemporalType c : TemporalType.values())
              System.out.println(c);

      Returns:
        an array containing the constants of this enum type, in the order they are declared

    - #### valueOf

          public static TemporalType valueOf(String name)

      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
        `NullPointerException` - if the argument is null

    - #### getTemporalType

          public static TemporalType getTemporalType(Temporal temporal)

      Get temporal macro-type of given `temporal` instance
      Parameters:
        `temporal` - Temporal to process
      Returns:
        TemporalType of given `Temporal`, or `null` if given temporal was null

Copyright © 2017 The Holon Platform. All rights reserved.