com.tibco.rta.model
Enum TimeUnits.Unit

java.lang.Object
  extended by java.lang.Enum<TimeUnits.Unit>
      extended by com.tibco.rta.model.TimeUnits.Unit
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<TimeUnits.Unit>
Enclosing interface:
TimeUnits

public static enum TimeUnits.Unit
extends java.lang.Enum<TimeUnits.Unit>

An enumeration of some basic time units.


Enum Constant Summary
DAY
          Day.
DAY_OF_THE_WEEK
          Day of the week.
HOUR
          Hour.
HOUR_OF_THE_DAY
          Hour of the day.
MILLISECOND
          Millisecond.
MINUTE
          Minute.
MINUTE_OF_THE_HOUR
          Minute of the hour.
MONTH
          Month.
MONTH_OF_THE_YEAR
          Month of the year.
QTR_OF_THE_YEAR
          Quarter of the year.
QUARTER
          Quarter.
SECOND
          Second.
WEEK
          Week.
YEAR
          Year.
 
Method Summary
static TimeUnits.Unit valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static TimeUnits.Unit[] 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

MILLISECOND

public static final TimeUnits.Unit MILLISECOND
Millisecond.


SECOND

public static final TimeUnits.Unit SECOND
Second.


MINUTE

public static final TimeUnits.Unit MINUTE
Minute.


HOUR

public static final TimeUnits.Unit HOUR
Hour.


DAY

public static final TimeUnits.Unit DAY
Day.


WEEK

public static final TimeUnits.Unit WEEK
Week.


MONTH

public static final TimeUnits.Unit MONTH
Month.


QUARTER

public static final TimeUnits.Unit QUARTER
Quarter.


YEAR

public static final TimeUnits.Unit YEAR
Year.


MINUTE_OF_THE_HOUR

public static final TimeUnits.Unit MINUTE_OF_THE_HOUR
Minute of the hour.


HOUR_OF_THE_DAY

public static final TimeUnits.Unit HOUR_OF_THE_DAY
Hour of the day.


DAY_OF_THE_WEEK

public static final TimeUnits.Unit DAY_OF_THE_WEEK
Day of the week.


MONTH_OF_THE_YEAR

public static final TimeUnits.Unit MONTH_OF_THE_YEAR
Month of the year.


QTR_OF_THE_YEAR

public static final TimeUnits.Unit QTR_OF_THE_YEAR
Quarter of the year.

Method Detail

values

public static TimeUnits.Unit[] 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 (TimeUnits.Unit c : TimeUnits.Unit.values())
    System.out.println(c);

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

valueOf

public static TimeUnits.Unit valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null


Copyright © 2000-2014 TIBCO Inc. All Rights Reserved.