Package net.sf.saxon.z
Class IntValuePredicate
java.lang.Object
net.sf.saxon.z.IntValuePredicate
- All Implemented Interfaces:
IntPredicate,IntPredicateProxy
An IntPredicate that matches a single specific integer
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.function.IntPredicate
and, negate, orMethods inherited from interface net.sf.saxon.z.IntPredicateProxy
union
-
Constructor Details
-
IntValuePredicate
public IntValuePredicate(int target)
-
-
Method Details
-
test
public boolean test(int value) Ask whether a given value matches this predicate- Specified by:
testin interfaceIntPredicate- Specified by:
testin interfaceIntPredicateProxy- Parameters:
value- the value to be tested- Returns:
- true if the value matches; false if it does not
-
getTarget
public int getTarget()Get the value matched by this predicate- Returns:
- the value that this predicate matches
-