Package com.logicaldoc.util.time
Enum TimeDiff.TimeField
- java.lang.Object
-
- java.lang.Enum<TimeDiff.TimeField>
-
- com.logicaldoc.util.time.TimeDiff.TimeField
-
- All Implemented Interfaces:
Serializable
,Comparable<TimeDiff.TimeField>
- Enclosing class:
- TimeDiff
public static enum TimeDiff.TimeField extends Enum<TimeDiff.TimeField>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DAY
HOUR
MILLISECOND
MINUTE
SECOND
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TimeDiff.TimeField
valueOf(String name)
Returns the enum constant of this type with the specified name.static TimeDiff.TimeField[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DAY
public static final TimeDiff.TimeField DAY
-
HOUR
public static final TimeDiff.TimeField HOUR
-
MINUTE
public static final TimeDiff.TimeField MINUTE
-
SECOND
public static final TimeDiff.TimeField SECOND
-
MILLISECOND
public static final TimeDiff.TimeField MILLISECOND
-
-
Method Detail
-
values
public static TimeDiff.TimeField[] 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 (TimeDiff.TimeField c : TimeDiff.TimeField.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TimeDiff.TimeField 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 nameNullPointerException
- if the argument is null
-
-