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