public enum NumberOfThreads extends Enum<NumberOfThreads>
Enum Constant and Description |
---|
Default
The default value.
|
Eight
Eight threads.
|
Five
Five threads.
|
Four
Four threads.
|
One
One thread.
|
Seven
Seven threads.
|
Six
Six threads.
|
Three
Three threads.
|
Two
Two threads.
|
Modifier and Type | Method and Description |
---|---|
static NumberOfThreads |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NumberOfThreads[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NumberOfThreads Default
The default value.
public static final NumberOfThreads One
One thread.
public static final NumberOfThreads Two
Two threads.
public static final NumberOfThreads Three
Three threads.
public static final NumberOfThreads Four
Four threads.
public static final NumberOfThreads Five
Five threads.
public static final NumberOfThreads Six
Six threads.
public static final NumberOfThreads Seven
Seven threads.
public static final NumberOfThreads Eight
Eight threads.
public static NumberOfThreads[] values()
for (NumberOfThreads c : NumberOfThreads.values()) System.out.println(c);
public static NumberOfThreads valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null