Package net.sf.saxon.z
Class IntUnionPredicate
- java.lang.Object
-
- net.sf.saxon.z.IntUnionPredicate
-
- All Implemented Interfaces:
IntPredicate
public class IntUnionPredicate extends Object implements IntPredicate
An IntPredicate formed as the union of two other predicates: it matches an integer if either of the operands matches the integer
-
-
Constructor Summary
Constructors Constructor Description IntUnionPredicate(IntPredicate p1, IntPredicate p2)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntPredicate[]getOperands()Get the operandsbooleantest(int value)Ask whether a given value matches this predicateStringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.function.IntPredicate
and, negate, or
-
-
-
-
Constructor Detail
-
IntUnionPredicate
public IntUnionPredicate(IntPredicate p1, IntPredicate p2)
-
-
Method Detail
-
test
public boolean test(int value)
Ask whether a given value matches this predicate- Specified by:
testin interfaceIntPredicate- Parameters:
value- the value to be tested- Returns:
- true if the value matches; false if it does not
-
getOperands
public IntPredicate[] getOperands()
Get the operands- Returns:
- an array containing the two operands
-
-