public enum EurekaDataCenterType extends Enum<EurekaDataCenterType> implements org.refcodes.mixin.NameAccessor
Modifier and Type | Method and Description |
---|---|
static EurekaDataCenterType |
fromName(String aName)
Resolve an
EurekaDataCenterType from the given name. |
String |
getName() |
String |
toString() |
static EurekaDataCenterType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EurekaDataCenterType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EurekaDataCenterType MY_OWN
public static final EurekaDataCenterType AMAZON
public static EurekaDataCenterType[] values()
for (EurekaDataCenterType c : EurekaDataCenterType.values()) System.out.println(c);
public static EurekaDataCenterType 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 getName()
getName
in interface org.refcodes.mixin.NameAccessor
public String toString()
toString
in class Enum<EurekaDataCenterType>
public static EurekaDataCenterType fromName(String aName)
EurekaDataCenterType
from the given name.aName
- The name for which to resolve the
EurekaDataCenterType
.EurekaDataCenterType
or null if the name
was not resolvable.Copyright © 2018. All rights reserved.