Enum Class Message.Context

java.lang.Object
java.lang.Enum<Message.Context>
pro.cloudnode.smp.cloudnodemsg.Message.Context
All Implemented Interfaces:
Serializable, Comparable<Message.Context>, Constable
Enclosing class:
Message

public static enum Message.Context extends Enum<Message.Context>
The context in which this message is sent
  • Enum Constant Details

    • REGULAR

      public static final Message.Context REGULAR
      Message sent via command (i.e. no special context)
    • CHANNEL

      public static final Message.Context CHANNEL
      Message sent via messaging channel
    • REPLY

      public static final Message.Context REPLY
      Message sent as a reply
  • Method Details

    • values

      public static Message.Context[] 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 Message.Context 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