public enum EnumNames extends Enum<EnumNames> implements PEnumValue<EnumNames>
| Modifier and Type | Class and Description |
|---|---|
static class |
EnumNames._Builder |
| Enum Constant and Description |
|---|
C_CASE |
CAMELCASE |
LOWERCASE |
MIXED_CASE |
PASCALCASE |
UPPER_CASE |
| Modifier and Type | Field and Description |
|---|---|
static PEnumDescriptor<EnumNames> |
kDescriptor |
| Modifier and Type | Method and Description |
|---|---|
PEnumDescriptor<EnumNames> |
descriptor() |
static EnumNames |
forName(String name) |
static EnumNames |
forValue(int value) |
String |
getComment() |
String |
getName() |
int |
getValue() |
static PEnumDescriptorProvider<EnumNames> |
provider() |
static EnumNames |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EnumNames[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfcompareTopublic static final EnumNames LOWERCASE
public static final EnumNames CAMELCASE
public static final EnumNames PASCALCASE
public static final EnumNames C_CASE
public static final EnumNames UPPER_CASE
public static final EnumNames MIXED_CASE
public static final PEnumDescriptor<EnumNames> kDescriptor
public static EnumNames[] values()
for (EnumNames c : EnumNames.values()) System.out.println(c);
public static EnumNames 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 getComment()
getComment in interface PEnumValue<EnumNames>public int getValue()
getValue in interface PEnumValue<EnumNames>public String getName()
getName in interface PEnumValue<EnumNames>public static EnumNames forValue(int value)
public PEnumDescriptor<EnumNames> descriptor()
descriptor in interface PValue<EnumNames>public static PEnumDescriptorProvider<EnumNames> provider()
Copyright © 2016. All rights reserved.