Enum IPStatus

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<IPStatus>

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

      Enum Constants 
      Enum Constant Description
      BLACKLIST
      Value for when the IP is blacklisted.
      CHECKED
      Value for when the IP is checked by the server, but no extra status is given.
      CHECKING
      Value for when the IP is still in queue to be requested to the servers.
      NOTHING
      Value for when the IP does not have a special status.
      REQUESTED
      Value for when the IP is requested, but the server has not responded yet.
      WHITELIST
      Value for when the IP is whitelisted.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static IPStatus valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static IPStatus[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • 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

        public static final IPStatus WHITELIST
        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:
        BotSentryAPI.isChecked(String, Consumer)
    • Method Detail

      • values

        public static IPStatus[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (IPStatus c : IPStatus.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static IPStatus valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null