public class IntSetPredicate extends Object implements IntPredicate
| Modifier and Type | Field and Description |
|---|---|
static IntPredicate |
ALWAYS_FALSE
Convenience predicate that never matches
|
static 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
|
IntPredicate |
or(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
|
String |
toString()
Get string representation
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitand, negatepublic static final IntPredicate ALWAYS_TRUE
public static final IntPredicate ALWAYS_FALSE
public IntSetPredicate(IntSet set)
public boolean test(int value)
test in interface IntPredicatevalue - the value to be testedpublic IntPredicate or(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 IntPredicateother - a predicate that will be logically-ORed with this
predicateother predicateNullPointerException - if other is nullpublic IntSet getIntSet()