Package net.sf.saxon.z
Class IntSetPredicate
- java.lang.Object
-
- net.sf.saxon.z.IntSetPredicate
-
- All Implemented Interfaces:
java.util.function.IntPredicate
,IntPredicateProxy
public class IntSetPredicate extends java.lang.Object implements IntPredicateProxy
An implementation of IntPredicate that tests whether a given integer is a member of some IntSet
-
-
Field Summary
Fields Modifier and Type Field Description static IntPredicateProxy
ALWAYS_FALSE
Convenience predicate that never matchesstatic IntPredicateProxy
ALWAYS_TRUE
Convenience predicate that always matches
-
Constructor Summary
Constructors Constructor Description IntSetPredicate(IntSet set)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntSet
getIntSet()
Get the underlying IntSetboolean
test(int value)
Ask whether a given value matches this predicatejava.lang.String
toString()
Get string representation-
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
-
-
-
-
Field Detail
-
ALWAYS_TRUE
public static final IntPredicateProxy ALWAYS_TRUE
Convenience predicate that always matches
-
ALWAYS_FALSE
public static final IntPredicateProxy ALWAYS_FALSE
Convenience predicate that never matches
-
-
Constructor Detail
-
IntSetPredicate
public IntSetPredicate(IntSet set)
-
-
Method Detail
-
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
-
getIntSet
public IntSet getIntSet()
Get the underlying IntSet- Returns:
- the underlying IntSet
-
toString
public java.lang.String toString()
Get string representation- Overrides:
toString
in classjava.lang.Object
-
-