Package net.sf.saxon.z
Class IntIntersectionPredicate
- java.lang.Object
-
- net.sf.saxon.z.IntIntersectionPredicate
-
- All Implemented Interfaces:
java.util.function.IntPredicate
,IntPredicateProxy
public class IntIntersectionPredicate 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 Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description IntPredicateProxy[]
getOperands()
Get the operandsstatic IntPredicateProxy
makeIntersection(IntPredicateProxy p1, IntPredicateProxy p2)
boolean
test(int value)
Ask whether a given value matches this predicatejava.lang.String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.sf.saxon.z.IntPredicateProxy
union
-
-
-
-
Method Detail
-
makeIntersection
public static IntPredicateProxy makeIntersection(IntPredicateProxy p1, IntPredicateProxy p2)
-
test
public boolean test(int value)
Ask whether a given value matches this predicate- Specified by:
test
in interfacejava.util.function.IntPredicate
- Specified by:
test
in interfaceIntPredicateProxy
- 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 classjava.lang.Object
-
-