public enum TodoStatus extends java.lang.Enum<TodoStatus>
Enum Constant and Description |
---|
ACCOMPLISHED
The todo is accomplished.
|
ALIVE
The todo is alive (allocated or unallocated).
|
INTERRUPTED
The todo was interrupted.
|
SUSPENDED
The todo is suspended.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getLabel()
Returns the status label.
|
boolean |
isFinished()
Returns true if this status represents a finished status.
|
java.lang.String |
toString() |
static TodoStatus |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TodoStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TodoStatus ALIVE
public static final TodoStatus SUSPENDED
public static final TodoStatus ACCOMPLISHED
public static final TodoStatus INTERRUPTED
public static TodoStatus[] values()
for (TodoStatus c : TodoStatus.values()) System.out.println(c);
public static TodoStatus 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 java.lang.String toString()
toString
in class java.lang.Enum<TodoStatus>
public java.lang.String getLabel()
public boolean isFinished()
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.