public static enum Instantiation.InstantiationMode extends java.lang.Enum<Instantiation.InstantiationMode>
Enum Constant and Description |
---|
NEW_INSTANCE |
SINGLE_INSTANCE |
Modifier and Type | Method and Description |
---|---|
static Instantiation.InstantiationMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Instantiation.InstantiationMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Instantiation.InstantiationMode NEW_INSTANCE
public static final Instantiation.InstantiationMode SINGLE_INSTANCE
public static Instantiation.InstantiationMode[] values()
for (Instantiation.InstantiationMode c : Instantiation.InstantiationMode.values()) System.out.println(c);
public static Instantiation.InstantiationMode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null