hudson.model
Enum MultiStageTimeSeries.TimeScale

java.lang.Object
  extended by java.lang.Enum<MultiStageTimeSeries.TimeScale>
      extended by 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.


Enum Constant Summary
HOUR
           
MIN
           
SEC10
           
 
Field Summary
 long tick
          Number of milliseconds (10 secs, 1 min, and 1 hour) that this constant represents.
 
Method Summary
 DateFormat createDateFormat()
          Creates a new DateFormat suitable for processing this MultiStageTimeSeries.TimeScale.
static MultiStageTimeSeries.TimeScale parse(String type)
          Parses the MultiStageTimeSeries.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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

SEC10

public static final MultiStageTimeSeries.TimeScale SEC10

MIN

public static final MultiStageTimeSeries.TimeScale MIN

HOUR

public static final MultiStageTimeSeries.TimeScale HOUR
Field Detail

tick

public final long tick
Number of milliseconds (10 secs, 1 min, and 1 hour) that this constant represents.

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 name
NullPointerException - if the argument is null

createDateFormat

public DateFormat createDateFormat()
Creates a new DateFormat suitable for processing this MultiStageTimeSeries.TimeScale.


parse

public static MultiStageTimeSeries.TimeScale parse(String type)
Parses the MultiStageTimeSeries.TimeScale from the query parameter.



Copyright © 2004-2013. All Rights Reserved.