com.jrockit.mc.flightrecorder
Enum RecordingPrinter.TimeFormat

java.lang.Object
  extended by java.lang.Enum<RecordingPrinter.TimeFormat>
      extended by com.jrockit.mc.flightrecorder.RecordingPrinter.TimeFormat
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<RecordingPrinter.TimeFormat>
Enclosing class:
RecordingPrinter

public static enum RecordingPrinter.TimeFormat
extends java.lang.Enum<RecordingPrinter.TimeFormat>

Time format to use when printing events.

Author:
Erik Gahlin

Enum Constant Summary
HUMAN_READABLE
          Will write timestamps using the locale in use and timespans in seconds.
NANOS
          Will write timestamps as nanos since 1970 and timespan in nano seconds
 
Method Summary
static RecordingPrinter.TimeFormat valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static RecordingPrinter.TimeFormat[] 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

NANOS

public static final RecordingPrinter.TimeFormat NANOS
Will write timestamps as nanos since 1970 and timespan in nano seconds


HUMAN_READABLE

public static final RecordingPrinter.TimeFormat HUMAN_READABLE
Will write timestamps using the locale in use and timespans in seconds.

Method Detail

values

public static RecordingPrinter.TimeFormat[] 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 (RecordingPrinter.TimeFormat c : RecordingPrinter.TimeFormat.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static RecordingPrinter.TimeFormat valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null


Copyright © 1999, 2011, Oracle and/or its affiliates. All rights reserved.