public enum TodoStatus extends 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 |
---|---|
String |
getLabel()
Returns the status label.
|
boolean |
isFinished()
Returns true if this status represents a finished status.
|
String |
toString() |
static TodoStatus |
valueOf(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(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String toString()
toString
in class Enum<TodoStatus>
public String getLabel()
public boolean isFinished()
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.