Package hudson.model
Enum MultiStageTimeSeries.TimeScale
- java.lang.Object
-
- java.lang.Enum<MultiStageTimeSeries.TimeScale>
-
- hudson.model.MultiStageTimeSeries.TimeScale
-
- All Implemented Interfaces:
Serializable
,Comparable<MultiStageTimeSeries.TimeScale>
- Enclosing class:
- MultiStageTimeSeries
public static enum MultiStageTimeSeries.TimeScale extends Enum<MultiStageTimeSeries.TimeScale>
Choose which datapoint to use.
-
-
Field Summary
Fields Modifier and Type Field Description long
tick
Number of milliseconds (10 secs, 1 min, and 1 hour) that this constant represents.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DateFormat
createDateFormat()
Creates a newDateFormat
suitable for processing thisMultiStageTimeSeries.TimeScale
.static MultiStageTimeSeries.TimeScale
parse(String type)
Parses theMultiStageTimeSeries.TimeScale
from the query parameter.static MultiStageTimeSeries.TimeScale
valueOf(String name)
Returns the enum constant of this type with the specified name.static MultiStageTimeSeries.TimeScale[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SEC10
public static final MultiStageTimeSeries.TimeScale SEC10
-
MIN
public static final MultiStageTimeSeries.TimeScale MIN
-
HOUR
public static final MultiStageTimeSeries.TimeScale HOUR
-
-
Method Detail
-
values
public static MultiStageTimeSeries.TimeScale[] 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 (MultiStageTimeSeries.TimeScale c : MultiStageTimeSeries.TimeScale.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MultiStageTimeSeries.TimeScale 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
-
createDateFormat
public DateFormat createDateFormat()
Creates a newDateFormat
suitable for processing thisMultiStageTimeSeries.TimeScale
.
-
parse
public static MultiStageTimeSeries.TimeScale parse(String type)
Parses theMultiStageTimeSeries.TimeScale
from the query parameter.
-
-