public enum ThreadModel extends Enum<ThreadModel>
Enum Constant and Description |
---|
MULTI_THREADED |
SINGLE_THREADED |
Modifier and Type | Method and Description |
---|---|
static ThreadModel |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ThreadModel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ThreadModel SINGLE_THREADED
public static final ThreadModel MULTI_THREADED
public static ThreadModel[] values()
for (ThreadModel c : ThreadModel.values()) System.out.println(c);
public static ThreadModel 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 nullCopyright © 2014. All rights reserved.