public enum DaemonThreadFactory extends Enum<DaemonThreadFactory> implements ThreadFactory
Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Method and Description |
---|---|
Thread |
newThread(Runnable r) |
static DaemonThreadFactory |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DaemonThreadFactory[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DaemonThreadFactory INSTANCE
public static DaemonThreadFactory[] values()
for (DaemonThreadFactory c : DaemonThreadFactory.values()) System.out.println(c);
public static DaemonThreadFactory 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 nullpublic Thread newThread(Runnable r)
newThread
in interface ThreadFactory
Copyright © 2015. All rights reserved.