Enum Instantiation.InstantiationMode
- java.lang.Object
-
- java.lang.Enum<Instantiation.InstantiationMode>
-
- com.smartfoxserver.v2.annotations.Instantiation.InstantiationMode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Instantiation.InstantiationMode>
- Enclosing class:
- Instantiation
public static enum Instantiation.InstantiationMode extends java.lang.Enum<Instantiation.InstantiationMode>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NEW_INSTANCE
SINGLE_INSTANCE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Enum Constant Detail
-
NEW_INSTANCE
public static final Instantiation.InstantiationMode NEW_INSTANCE
-
SINGLE_INSTANCE
public static final Instantiation.InstantiationMode SINGLE_INSTANCE
-
-
Method Detail
-
values
public static Instantiation.InstantiationMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Instantiation.InstantiationMode c : Instantiation.InstantiationMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Instantiation.InstantiationMode valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-