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

public enum Anchor extends Enum<Anchor>
Defines anchor options for matching messages.
  • Enum Constant Details Link icon

    • FIRST_UNREAD Link icon

      public static final Anchor FIRST_UNREAD
      The oldest unread message matching the query, if any; otherwise, the most recent message.
    • NEWEST Link icon

      public static final Anchor NEWEST
      The most recent message.
    • OLDEST Link icon

      public static final Anchor OLDEST
      The oldest message.
  • Method Details Link icon

    • values Link icon

      public static Anchor[] 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 Link icon

      public static Anchor 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 Link icon

      public String toString()
      Overrides:
      toString in class Enum<Anchor>