Package org.openjdk.jmh.runner.options
Enum WarmupMode
- All Implemented Interfaces:
Serializable
,Comparable<WarmupMode>
,java.lang.constant.Constable
Warmup Mode enum
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
isBulk()
boolean
isIndi()
static WarmupMode
Returns the enum constant of this type with the specified name.static WarmupMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
INDI
Do the individual warmup for every benchmark -
BULK
Do the bulk warmup before any benchmark starts. -
BULK_INDI
Do the bulk warmup before any benchmark starts, and then also do individual warmups for every benchmark.
-
-
Field Details
-
bulk
private final boolean bulk -
indi
private final boolean indi
-
-
Constructor Details
-
WarmupMode
private WarmupMode(boolean bulk, boolean indi)
-
-
Method Details
-
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
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
-
isBulk
public boolean isBulk() -
isIndi
public boolean isIndi()
-