public enum ServiceTestEnum extends Enum<ServiceTestEnum> implements ServiceExtEnum
Modifier and Type | Method and Description |
---|---|
String |
getServiceName()
Gets name of this enum.
|
static ServiceTestEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ServiceTestEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ServiceTestEnum ACCOUNT
public static final ServiceTestEnum CUSTOMER
public static ServiceTestEnum[] values()
for (ServiceTestEnum c : ServiceTestEnum.values()) System.out.println(c);
public static ServiceTestEnum 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.