private static enum MoreExecutors.DirectExecutor extends java.lang.Enum<MoreExecutors.DirectExecutor> implements java.util.concurrent.Executor
MoreExecutors.directExecutor()
for behavioral notes.Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Method and Description |
---|---|
void |
execute(java.lang.Runnable command) |
java.lang.String |
toString() |
static MoreExecutors.DirectExecutor |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MoreExecutors.DirectExecutor[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MoreExecutors.DirectExecutor INSTANCE
public static MoreExecutors.DirectExecutor[] values()
for (MoreExecutors.DirectExecutor c : MoreExecutors.DirectExecutor.values()) System.out.println(c);
public static MoreExecutors.DirectExecutor valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic void execute(java.lang.Runnable command)
execute
in interface java.util.concurrent.Executor
public java.lang.String toString()
toString
in class java.lang.Enum<MoreExecutors.DirectExecutor>