public enum DoNothingDataController extends Enum<DoNothingDataController> implements AsyncDataController
AsyncDataController which does nothing and always returns
null as the state of progress.
This class is a singleton and its one and only instance is:
INSTANCE.
instance of this class are immutable and as such is
safe to be accessed by multiple threads concurrently.
| Enum Constant and Description |
|---|
INSTANCE
The one and only instance of
DoNothingDataController. |
| Modifier and Type | Method and Description |
|---|---|
void |
controlData(Object controlArg)
Does nothing and returns immediately to the caller.
|
AsyncDataState |
getDataState()
Does nothing and returns
null. |
String |
toString()
Returns the string representation of this
DoNothingDataController
in no particular format. |
static DoNothingDataController |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DoNothingDataController[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DoNothingDataController INSTANCE
DoNothingDataController.public static DoNothingDataController[] values()
for (DoNothingDataController c : DoNothingDataController.values()) System.out.println(c);
public static DoNothingDataController 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 void controlData(Object controlArg)
controlData in interface AsyncDataControllercontrolArg - this argument is ignored.public AsyncDataState getDataState()
null.getDataState in interface AsyncDataControllernull alwayspublic String toString()
DoNothingDataController
in no particular format.
This method is intended to be used for debugging only.
toString in class Enum<DoNothingDataController>null.