Enum Class MESH.ServerState

java.lang.Object
java.lang.Enum<MESH.ServerState>
com.isode.dsapi.config.MESH.ServerState
All Implemented Interfaces:
Serializable, Comparable<MESH.ServerState>, Constable
Enclosing class:
MESH

public static enum MESH.ServerState extends Enum<MESH.ServerState>
  • Enum Constant Details

  • Method Details

    • values

      public static MESH.ServerState[] 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

      public static MESH.ServerState valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getStateValue

      public int getStateValue()
      Get the integer value representing the state of the agreement.
      Returns:
      State integer value.
    • getFriendlyString

      public String getFriendlyString()
      Get the user friendly string describing the state.
      Returns:
      State description string.
    • getState

      public static MESH.ServerState getState(Integer val)
      Return matching state for the given integer.
      Parameters:
      val - Given integer, can be null.
      Returns:
      Matching state or OFFLINE if not found.