public class IntSetPredicate
extends java.lang.Object
implements java.util.function.IntPredicate
| Modifier and Type | Field and Description |
|---|---|
static java.util.function.IntPredicate |
ALWAYS_FALSE
Convenience predicate that never matches
|
static java.util.function.IntPredicate |
ALWAYS_TRUE
Convenience predicate that always matches
|
| Constructor and Description |
|---|
IntSetPredicate(IntSet set) |
| Modifier and Type | Method and Description |
|---|---|
IntSet |
getIntSet()
Get the underlying IntSet
|
java.util.function.IntPredicate |
or(java.util.function.IntPredicate other)
Returns a composed predicate that represents a short-circuiting logical
OR of this predicate and another.
|
boolean |
test(int value)
Ask whether a given value matches this predicate
|
java.lang.String |
toString()
Get string representation
|
public static final java.util.function.IntPredicate ALWAYS_TRUE
public static final java.util.function.IntPredicate ALWAYS_FALSE
public IntSetPredicate(IntSet set)
public boolean test(int value)
test in interface java.util.function.IntPredicatevalue - the value to be testedpublic java.util.function.IntPredicate or(java.util.function.IntPredicate other)
true, then the other
predicate is not evaluated.
Any exceptions thrown during evaluation of either predicate are relayed
to the caller; if evaluation of this predicate throws an exception, the
other predicate will not be evaluated.
or in interface java.util.function.IntPredicateother - a predicate that will be logically-ORed with this
predicateother predicatejava.lang.NullPointerException - if other is nullpublic IntSet getIntSet()
public java.lang.String toString()
toString in class java.lang.ObjectCopyright (c) 2004-2020 Saxonica Limited. All rights reserved.