Enum Class Operator

java.lang.Object
java.lang.Enum<Operator>
org.jppf.utils.Operator
All Implemented Interfaces:
Serializable, Comparable<Operator>, Constable, ComparisonOperator

public enum Operator extends Enum<Operator> implements ComparisonOperator
Enumeration of the possible boolean operators that can be used as a comparison predicates for integer/long values.
Author:
Laurent Cohen
  • Enum Constant Details

    • EQUAL

      public static final Operator EQUAL
      The number of connections is equal to the expected number.
    • NOT_EQUAL

      public static final Operator NOT_EQUAL
      The number of connections is different from the expected number.
    • AT_LEAST

      public static final Operator AT_LEAST
      The number of connections is at least the expected number.
    • AT_MOST

      public static final Operator AT_MOST
      The number of connections is at most the expected number.
    • MORE_THAN

      public static final Operator MORE_THAN
      The number of connections is strictly greater than the expected number.
    • LESS_THAN

      public static final Operator LESS_THAN
      The number of connections is strictly less than the expected number.
  • Method Details

    • values

      public static Operator[] 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 Operator 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
    • toString

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