Serializable
, Comparable<ThreadingModel>
public enum ThreadingModel extends Enum<ThreadingModel>
Enum Constant | Description |
---|---|
MULTI |
Stands for a multi-threaded thread model.
|
SINGLE |
Stands for a single-threaded thread model.
|
Modifier and Type | Method | Description |
---|---|---|
static ThreadingModel |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static ThreadingModel[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ThreadingModel SINGLE
public static final ThreadingModel MULTI
public static ThreadingModel[] values()
for (ThreadingModel c : ThreadingModel.values()) System.out.println(c);
public static ThreadingModel 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 © 2021. All rights reserved.