public enum EnumWithNoOuter extends Enum<EnumWithNoOuter>
Modifier and Type | Method and Description |
---|---|
int |
getNumber() |
String |
toString() |
static EnumWithNoOuter |
valueOf(int value) |
static EnumWithNoOuter |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EnumWithNoOuter[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EnumWithNoOuter FOO
public static final EnumWithNoOuter BAR
public static EnumWithNoOuter[] values()
for (EnumWithNoOuter c : EnumWithNoOuter.values()) System.out.println(c);
public static EnumWithNoOuter 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 final int getNumber()
public final String toString()
toString
in class Enum<EnumWithNoOuter>
public static EnumWithNoOuter valueOf(int value)
Copyright © 2018. All rights reserved.