public enum ThreadMode extends Enum<ThreadMode>
Enum Constant and Description |
---|
APPLICATION
Stands for an application thread not being shut down even when none other
Thread is active any more. |
DAEMON
Stands for a daemon thread being shut down when the last application
Thread shut down. |
Modifier and Type | Method and Description |
---|---|
static ThreadMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ThreadMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ThreadMode DAEMON
Thread
shut down.public static final ThreadMode APPLICATION
Thread
is active any more.public static ThreadMode[] values()
for (ThreadMode c : ThreadMode.values()) System.out.println(c);
public static ThreadMode 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 © 2018. All rights reserved.