public static enum Status.State extends Enum<Status.State>
Modifier and Type | Method and Description |
---|---|
static Status.State |
fromBoolean(boolean ready)
returns {{GREEN}} for {{true}} and {{YELLOW}} for {{false}}
|
static Status.State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Status.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
static Status.State |
worstOf(Stream<Status.State> states) |
public static final Status.State RED
public static final Status.State YELLOW
public static final Status.State GREEN
public static Status.State[] values()
for (Status.State c : Status.State.values()) System.out.println(c);
public static Status.State 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 Status.State fromBoolean(boolean ready)
public static Status.State worstOf(Stream<Status.State> states)
Copyright © 2006–2018 The Apache Software Foundation. All rights reserved.