Class IntUnionPredicate

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

    public class IntUnionPredicate
    extends java.lang.Object
    implements IntPredicateProxy
    An IntPredicate formed as the union of two other predicates: it matches an integer if either of the operands matches the integer
    • 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
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object