Class IntExceptPredicate

  • All Implemented Interfaces:

    public class IntExceptPredicate
    extends java.lang.Object
    implements java.util.function.IntPredicate
    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
    • Constructor Summary

      Constructor Description
      IntExceptPredicate​(java.util.function.IntPredicate p1, java.util.function.IntPredicate p2)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.function.IntPredicate[] getOperands()
      Get the operands
      boolean test​(int value)
      Ask whether a given value matches this predicate
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.function.IntPredicate

        and, negate, or
    • Constructor Detail

      • IntExceptPredicate

        public IntExceptPredicate​(java.util.function.IntPredicate p1,
                                  java.util.function.IntPredicate p2)
    • 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
        value - the value to be tested
        true if the value matches; false if it does not
      • getOperands

        public java.util.function.IntPredicate[] getOperands()
        Get the operands
        an array containing the two operands