java.lang.Object
java.lang.Enum<TopicPolicy>
com.github.jamesnetherton.zulip.client.api.message.TopicPolicy
All Implemented Interfaces:
Serializable, Comparable<TopicPolicy>

public enum TopicPolicy extends Enum<TopicPolicy>
  • Enum Constant Details

    • ALLOW_EMPTY_TOPIC

      public static final TopicPolicy ALLOW_EMPTY_TOPIC
      Messages can be sent to both named topics and the empty topic in this channel.
    • DISABLE_EMPTY_TOPIC

      public static final TopicPolicy DISABLE_EMPTY_TOPIC
      Messages can be sent to named topics in this channel, but the empty topic is disabled.
    • EMPTY_TOPIC_ONLY

      public static final TopicPolicy EMPTY_TOPIC_ONLY
      Messages can be sent to the empty topic in this channel, but named topics are disabled
    • INHERIT

      public static final TopicPolicy INHERIT
      Messages can be sent to named topics in this channel, and the organization-level realm_topics_policy is used for whether messages can be sent to the empty topic in this channel
  • Method Details

    • values

      public static TopicPolicy[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static TopicPolicy valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • toString

      public String toString()
      Overrides:
      toString in class Enum<TopicPolicy>
    • fromString

      public static TopicPolicy fromString(String policy)