Enum Class MESH.AgreementState

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

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

  • Method Details

    • values

      public static MESH.AgreementState[] 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.AgreementState 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.AgreementState getState(Integer val)
      Return matching state for the given integer.
      Parameters:
      val - Agreement ID, can be null.
      Returns:
      Matching state or OFFLINE if not found.