public enum NumberOfThreads extends Enum<NumberOfThreads>
Learn more
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
public static final NumberOfThreads One
public static final NumberOfThreads Two
public static final NumberOfThreads Three
public static final NumberOfThreads Four
public static final NumberOfThreads Five
public static final NumberOfThreads Six
public static final NumberOfThreads Seven
public static final NumberOfThreads Eight
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