Package com.isode.dsapi.config
Enum Class MESH.ServerState
- All Implemented Interfaces:
Serializable
,Comparable<MESH.ServerState>
,Constable
- Enclosing class:
- MESH
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionGet the user friendly string describing the state.static MESH.ServerState
Return matching state for the given integer.int
Get the integer value representing the state of the agreement.static MESH.ServerState
Returns the enum constant of this class with the specified name.static MESH.ServerState[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
OFFLINE
-
ONLINE
-
-
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
-
getStateValue
public int getStateValue()Get the integer value representing the state of the agreement.- Returns:
- State integer value.
-
getFriendlyString
Get the user friendly string describing the state.- Returns:
- State description string.
-
getState
Return matching state for the given integer.- Parameters:
val
- Given integer, can be null.- Returns:
- Matching state or OFFLINE if not found.
-