- All Implemented Interfaces:
Serializable,Comparable<ConnectionType>,Constable
The constants of this enumerated type describe the various types of connections that can be initialized
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCreates a new connection from the first session that was serialized If no connection is available, a new one will be createdCreates a new connection from the last session that was serialized If no connection is available, a new one will be createdCreates a new connection using a unique identifier If no uuid is provided, a new connection will be created If the connection doesn't exist, a new one will be created -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ConnectionTypeReturns the enum constant of this class with the specified name.static ConnectionType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NEW
Creates a new connection using a unique identifier If no uuid is provided, a new connection will be created If the connection doesn't exist, a new one will be created -
FIRST
Creates a new connection from the first session that was serialized If no connection is available, a new one will be created -
LAST
Creates a new connection from the last session that was serialized If no connection is available, a new one will be created
-
-
Constructor Details
-
ConnectionType
private ConnectionType()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-