Package org.jtrim2.concurrent.query
Enum Class DoNothingDataController
- All Implemented Interfaces:
Serializable,Comparable<DoNothingDataController>,java.lang.constant.Constable,AsyncDataController
public enum DoNothingDataController
extends Enum<DoNothingDataController>
implements AsyncDataController
Defines an
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.
Thread safety
Theinstance of this class are immutable and as such is
safe to be accessed by multiple threads concurrently.
Synchronization transparency
The methods of this class are synchronization transparent.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionvoidcontrolData(Object controlArg) Does nothing and returns immediately to the caller.Does nothing and returnsnull.toString()Returns the string representation of thisDoNothingDataControllerin no particular format.static DoNothingDataControllerReturns the enum constant of this class with the specified name.static DoNothingDataController[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
The one and only instance ofDoNothingDataController.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
controlData
Does nothing and returns immediately to the caller.- Specified by:
controlDatain interfaceAsyncDataController- Parameters:
controlArg- this argument is ignored.
-
getDataState
Does nothing and returnsnull.- Specified by:
getDataStatein interfaceAsyncDataController- Returns:
nullalways
-
toString
Returns the string representation of thisDoNothingDataControllerin no particular format.This method is intended to be used for debugging only.
- Overrides:
toStringin classEnum<DoNothingDataController>- Returns:
- the string representation of this object in no particular format.
This method never returns
null.
-