Class IntExceptPredicate

  • All Implemented Interfaces:
    java.util.function.IntPredicate, IntPredicateProxy

    public class IntExceptPredicate
    extends java.lang.Object
    implements IntPredicateProxy
    An IntPredicate formed as the difference of two other predicates: it matches an integer if the first operand matches the integer and the second does not
    • Method Detail

      • test

        public boolean test​(int value)
        Ask whether a given value matches this predicate
        Specified by:
        test in interface java.util.function.IntPredicate
        Specified by:
        test in interface IntPredicateProxy
        Parameters:
        value - the value to be tested
        Returns:
        true if the value matches; false if it does not
      • getOperands

        public IntPredicateProxy[] getOperands()
        Get the operands
        Returns:
        an array containing the two operands