public enum EnumWithConstructor extends Enum<EnumWithConstructor>
| Enum Constant and Description |
|---|
SOME_ENUM_VALUE |
| Modifier and Type | Method and Description |
|---|---|
abstract SomeObjectInterface |
create() |
static EnumWithConstructor |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EnumWithConstructor[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EnumWithConstructor SOME_ENUM_VALUE
public static EnumWithConstructor[] values()
for (EnumWithConstructor c : EnumWithConstructor.values()) System.out.println(c);
public static EnumWithConstructor 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 abstract SomeObjectInterface create()
Copyright © 2025. All rights reserved.