public enum ServiceEnum extends Enum<ServiceEnum> implements ServiceExtEnum
Enum Constant and Description |
---|
HELLO |
Modifier and Type | Method and Description |
---|---|
String |
getServiceName()
Gets name of this enum.
|
static ServiceEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ServiceEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ServiceEnum HELLO
public static ServiceEnum[] values()
for (ServiceEnum c : ServiceEnum.values()) System.out.println(c);
public static ServiceEnum 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 getServiceName()
ServiceExtEnum
getServiceName
in interface ServiceExtEnum
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.