Enum Class ServerFilter

java.lang.Object
java.lang.Enum<ServerFilter>
dev.le_app.mcss_api_java.ServerFilter
All Implemented Interfaces:
Serializable, Comparable<ServerFilter>, Constable

public enum ServerFilter extends Enum<ServerFilter>
A list of the possible filters for the server list.
  • Enum Constant Details

    • NONE

      public static final ServerFilter NONE
      No filter
    • ONLINE

      public static final ServerFilter ONLINE
      Filter for servers that are online
    • OFFLINE

      public static final ServerFilter OFFLINE
      Filter for servers that are offline
    • FILTER

      public static final ServerFilter FILTER
      Filter for servers that have the same ServerType as a provided ServerID
  • Method Details

    • values

      public static ServerFilter[] 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 ServerFilter 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
    • getValue

      public int getValue()
      Gets associated value for the server filter - Used for API requests.
      Returns:
      The server filter as INT.
    • getValueStr

      public String getValueStr()
      Gets associated value for the server filter - Used for API requests.
      Returns:
      The server filter as STRING.