Package org.dashbuilder.dataset.date
Enum TimeInstant.TimeMode
- java.lang.Object
-
- java.lang.Enum<TimeInstant.TimeMode>
-
- org.dashbuilder.dataset.date.TimeInstant.TimeMode
-
- All Implemented Interfaces:
Serializable,Comparable<TimeInstant.TimeMode>
- Enclosing class:
- TimeInstant
public static enum TimeInstant.TimeMode extends Enum<TimeInstant.TimeMode>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TimeInstant.TimeModegetByIndex(int index)static TimeInstant.TimeModegetByName(String name)intgetIndex()static TimeInstant.TimeModevalueOf(String name)Returns the enum constant of this type with the specified name.static TimeInstant.TimeMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NOW
public static final TimeInstant.TimeMode NOW
-
BEGIN
public static final TimeInstant.TimeMode BEGIN
-
END
public static final TimeInstant.TimeMode END
-
-
Method Detail
-
values
public static TimeInstant.TimeMode[] 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 (TimeInstant.TimeMode c : TimeInstant.TimeMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TimeInstant.TimeMode 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
-
getIndex
public int getIndex()
-
getByName
public static TimeInstant.TimeMode getByName(String name)
-
getByIndex
public static TimeInstant.TimeMode getByIndex(int index)
-
-