Task.TaskState

  • Task.TaskState is an annotation that indicates the progression of a Task.

  • It has three states: CLOSED, OPEN, and UNSPECIFIED, representing completed, uncompleted, and unknown task statuses respectively.

  • The states are represented by integer constants: 2 for CLOSED, 1 for OPEN, and 0 for UNSPECIFIED.

  • It inherits methods from java.lang.annotation.Annotation like annotationType(), equals(), hashCode(), and toString().

public static abstract @interface Task.TaskState implements Annotation

The state of a Task indicating its progression.

Constant Summary

int CLOSED The work for the task has been completed.
int OPEN The work for the task has not been completed.
int UNSPECIFIED Default, used for an unspecified or unrecognized Task state.

Inherited Method Summary

Constants

public static final int CLOSED

The work for the task has been completed.

Constant Value: 2

public static final int OPEN

The work for the task has not been completed.

Constant Value: 1

public static final int UNSPECIFIED

Default, used for an unspecified or unrecognized Task state.

Constant Value: 0