public enum TaskAddStatus extends Enum<TaskAddStatus>
Enum Constant and Description |
---|
CLIENT_ERROR
Enum value clientError.
|
SERVER_ERROR
Enum value serverError.
|
SUCCESS
Enum value success.
|
Modifier and Type | Method and Description |
---|---|
static TaskAddStatus |
fromString(String value)
Parses a serialized value to a TaskAddStatus instance.
|
String |
toString() |
static TaskAddStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TaskAddStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TaskAddStatus SUCCESS
public static final TaskAddStatus CLIENT_ERROR
public static final TaskAddStatus SERVER_ERROR
public static TaskAddStatus[] values()
for (TaskAddStatus c : TaskAddStatus.values()) System.out.println(c);
public static TaskAddStatus 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 static TaskAddStatus fromString(String value)
value
- the serialized value to parse.public String toString()
toString
in class Enum<TaskAddStatus>
Copyright © 2019. All rights reserved.