Package net.sf.saxon.z
Class IntUnionPredicate
- java.lang.Object
-
- net.sf.saxon.z.IntUnionPredicate
-
- All Implemented Interfaces:
java.util.function.IntPredicate
public class IntUnionPredicate extends java.lang.Object implements java.util.function.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(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 operandsboolean
test(int value)
Ask whether a given value matches this predicatejava.lang.String
toString()
-
-
-
Method Detail
-
test
public boolean test(int value)
Ask whether a given value matches this predicate- Specified by:
test
in interfacejava.util.function.IntPredicate
- Parameters:
value
- the value to be tested- Returns:
- true if the value matches; false if it does not
-
getOperands
public java.util.function.IntPredicate[] getOperands()
Get the operands- Returns:
- an array containing the two operands
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-