public static enum TopicPath.Criterion extends Enum<TopicPath.Criterion>
| Enum Constant and Description |
|---|
COMMANDS |
ERRORS |
EVENTS |
MESSAGES |
SEARCH |
| Modifier and Type | Method and Description |
|---|---|
static Optional<TopicPath.Criterion> |
forName(String name)
Creates a Criterion from the passed Criterion
name if such an enum value exists, otherwise an empty
Optional. |
String |
getName()
Returns the Criterion name as String.
|
String |
toString() |
static TopicPath.Criterion |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TopicPath.Criterion[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TopicPath.Criterion COMMANDS
public static final TopicPath.Criterion EVENTS
public static final TopicPath.Criterion SEARCH
public static final TopicPath.Criterion MESSAGES
public static final TopicPath.Criterion ERRORS
public static TopicPath.Criterion[] values()
for (TopicPath.Criterion c : TopicPath.Criterion.values()) System.out.println(c);
public static TopicPath.Criterion 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 Optional<TopicPath.Criterion> forName(String name)
name if such an enum value exists, otherwise an empty
Optional.name - the Criterion name to create the Criterion enum value of.public String getName()
public String toString()
toString in class Enum<TopicPath.Criterion>Copyright © 2017–2019 Eclipse Foundation. All rights reserved.