Enum ActionMode

java.lang.Object
java.lang.Enum<ActionMode>
org.openjdk.jmh.runner.ActionMode
All Implemented Interfaces:
Serializable, Comparable<ActionMode>, java.lang.constant.Constable

enum ActionMode extends Enum<ActionMode>
  • Enum Constant Details

    • UNDEF

      public static final ActionMode UNDEF
      No action.
    • WARMUP

      public static final ActionMode WARMUP
      Do warmup only.
    • MEASUREMENT

      public static final ActionMode MEASUREMENT
      Do measurement only.
    • WARMUP_MEASUREMENT

      public static final ActionMode WARMUP_MEASUREMENT
      Do both warmup and measurement
  • Field Details

    • doWarmup

      private final boolean doWarmup
    • doMeasurement

      private final boolean doMeasurement
  • Constructor Details

    • ActionMode

      private ActionMode(boolean doWarmup, boolean doMeasurement)
  • Method Details

    • values

      public static ActionMode[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static ActionMode 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
    • doWarmup

      public boolean doWarmup()
    • doMeasurement

      public boolean doMeasurement()