com.ibm.icu.util
Class TimeUnit

java.lang.Object
  extended by com.ibm.icu.util.MeasureUnit
      extended by com.ibm.icu.util.TimeUnit

public class TimeUnit
extends MeasureUnit

Measurement unit for time units.

Author:
markdavis
See Also:
TimeUnitAmount, TimeUnit

Field Summary
static TimeUnit DAY
          Constant value for supported time unit.
static TimeUnit HOUR
          Constant value for supported time unit.
static TimeUnit MINUTE
          Constant value for supported time unit.
static TimeUnit MONTH
          Constant value for supported time unit.
static TimeUnit SECOND
          Constant value for supported time unit.
static TimeUnit WEEK
          Constant value for supported time unit.
static TimeUnit YEAR
          Constant value for supported time unit.
 
Method Summary
 String toString()
          A string representation for debugging.
static TimeUnit[] values()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SECOND

public static TimeUnit SECOND
Constant value for supported time unit.


MINUTE

public static TimeUnit MINUTE
Constant value for supported time unit.


HOUR

public static TimeUnit HOUR
Constant value for supported time unit.


DAY

public static TimeUnit DAY
Constant value for supported time unit.


WEEK

public static TimeUnit WEEK
Constant value for supported time unit.


MONTH

public static TimeUnit MONTH
Constant value for supported time unit.


YEAR

public static TimeUnit YEAR
Constant value for supported time unit.

Method Detail

values

public static TimeUnit[] values()
Returns:
the available values

toString

public String toString()
A string representation for debugging. It is for debugging purpose. The value might change. Please do not count on the value.

Overrides:
toString in class Object


Copyright (c) 2009 IBM Corporation and others.