com.commonsware.cwac.task
Enum AsyncTaskEx.Status

java.lang.Object
  extended by java.lang.Enum<AsyncTaskEx.Status>
      extended by com.commonsware.cwac.task.AsyncTaskEx.Status
All Implemented Interfaces:
Serializable, Comparable<AsyncTaskEx.Status>
Enclosing class:
AsyncTaskEx<Params,Progress,Result>

public static enum AsyncTaskEx.Status
extends Enum<AsyncTaskEx.Status>

Indicates the current status of the task. Each status will be set only once during the lifetime of a task.


Enum Constant Summary
FINISHED
          Indicates that AsyncTaskEx.onPostExecute(Result) has finished.
PENDING
          Indicates that the task has not been executed yet.
RUNNING
          Indicates that the task is running.
 
Method Summary
static AsyncTaskEx.Status valueOf(String name)
          Returns the enum constant of this type with the specified name.
static AsyncTaskEx.Status[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

PENDING

public static final AsyncTaskEx.Status PENDING
Indicates that the task has not been executed yet.


RUNNING

public static final AsyncTaskEx.Status RUNNING
Indicates that the task is running.


FINISHED

public static final AsyncTaskEx.Status FINISHED
Indicates that AsyncTaskEx.onPostExecute(Result) has finished.

Method Detail

values

public static AsyncTaskEx.Status[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (AsyncTaskEx.Status c : AsyncTaskEx.Status.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static AsyncTaskEx.Status valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
NullPointerException - if the argument is null