org.apache.openejb.util
Enum Duration.Unit
java.lang.Object
java.lang.Enum<Duration.Unit>
org.apache.openejb.util.Duration.Unit
- All Implemented Interfaces:
- Serializable, Comparable<Duration.Unit>
- Enclosing class:
- Duration
public static enum Duration.Unit
- extends Enum<Duration.Unit>
Method Summary |
static Duration.Unit |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Duration.Unit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
nanoseconds
public static final Duration.Unit nanoseconds
microseconds
public static final Duration.Unit microseconds
milliseconds
public static final Duration.Unit milliseconds
seconds
public static final Duration.Unit seconds
minutes
public static final Duration.Unit minutes
hours
public static final Duration.Unit hours
days
public static final Duration.Unit days
values
public static Duration.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 (Duration.Unit c : Duration.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 Duration.Unit 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
Copyright © 1999-2013 The Apache OpenEJB development community. All Rights Reserved.