Enum Class IPStatus

java.lang.Object
java.lang.Enum<IPStatus>
com.lahuca.botsentry.api.data.IPStatus
All Implemented Interfaces:
Serializable, Comparable<IPStatus>, Constable

public enum IPStatus extends Enum<IPStatus>
Enum for the different status values an IP can have.
  • Enum Constant Details

    • NOTHING

      public static final IPStatus NOTHING
      Value for when the IP does not have a special status.
    • BLACKLIST

      public static final IPStatus BLACKLIST
      Value for when the IP is blacklisted.
    • WHITELIST_NOT_FORCED

      public static final IPStatus WHITELIST_NOT_FORCED
      Value for when the IP is in the not forced IPs whitelist.
    • WHITELIST_FORCED

      public static final IPStatus WHITELIST_FORCED
      Value for when the IP is in the forced IPs whitelist.
    • WHITELIST

      @Deprecated public static final IPStatus WHITELIST
      Deprecated.
      As of version 9.4-THANATOS. Refer to WHITELIST_NOT_FORCED and WHITELIST_FORCED for the seperate whitelists. Might be removed in future versions.
      Value for when the IP is whitelisted.
    • CHECKING

      public static final IPStatus CHECKING
      Value for when the IP is still in queue to be requested to the servers.
    • REQUESTED

      public static final IPStatus REQUESTED
      Value for when the IP is requested, but the server has not responded yet.
    • CHECKED

      public static final IPStatus CHECKED
      Value for when the IP is checked by the server, but no extra status is given. It is possible that a blacklisted or whitelisted IP still has this status effect.
      See Also:
  • Method Details

    • values

      public static IPStatus[] 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 IPStatus 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