public static enum AsyncTask.TaskStatus extends java.lang.Enum<AsyncTask.TaskStatus>
| Enum Constant and Description |
|---|
COMPLETED
task has completed
|
ERROR
an error condition has prevented to execution of the task
|
EXECUTING
the task is being executed
|
NOT_STARTED
task has been created, but back-ends have not yet started to process it, or the the task has not been delivered to back-ends
|
PENDING
task has been delivered to back-end, but the analysis has not yet started
|
UNKNOWN
unknown or unspecified task status
|
| Modifier and Type | Method and Description |
|---|---|
static AsyncTask.TaskStatus |
fromInt(int value) |
static AsyncTask.TaskStatus |
getCombinedTaskStatus(java.util.Collection<AsyncTask.TaskStatus> statusList) |
int |
toInt() |
static AsyncTask.TaskStatus |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AsyncTask.TaskStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AsyncTask.TaskStatus UNKNOWN
public static final AsyncTask.TaskStatus NOT_STARTED
public static final AsyncTask.TaskStatus PENDING
public static final AsyncTask.TaskStatus EXECUTING
public static final AsyncTask.TaskStatus COMPLETED
public static final AsyncTask.TaskStatus ERROR
public static AsyncTask.TaskStatus[] values()
for (AsyncTask.TaskStatus c : AsyncTask.TaskStatus.values()) System.out.println(c);
public static AsyncTask.TaskStatus 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 int toInt()
public static AsyncTask.TaskStatus fromInt(int value) throws java.lang.IllegalArgumentException
value - java.lang.IllegalArgumentException - on bad inputpublic static AsyncTask.TaskStatus getCombinedTaskStatus(java.util.Collection<AsyncTask.TaskStatus> statusList)
statusList - Copyright © 2015 Tampere University of Technology, Pori Department.