@FunctionalInterface
public interface CheckedIntPredicate
IntPredicate
that allows for checked exceptions.Modifier and Type | Method | Description |
---|---|---|
static java.util.function.IntPredicate |
sneaky(CheckedIntPredicate predicate) |
|
boolean |
test(int value) |
Evaluates this predicate on the given argument.
|
static java.util.function.IntPredicate |
unchecked(CheckedIntPredicate predicate) |
|
static java.util.function.IntPredicate |
unchecked(CheckedIntPredicate function,
java.util.function.Consumer<java.lang.Throwable> handler) |
boolean test(int value) throws java.lang.Throwable
value
- the input argumenttrue
if the input argument matches the predicate,
otherwise false
java.lang.Throwable
static java.util.function.IntPredicate sneaky(CheckedIntPredicate predicate)
static java.util.function.IntPredicate unchecked(CheckedIntPredicate predicate)
static java.util.function.IntPredicate unchecked(CheckedIntPredicate function, java.util.function.Consumer<java.lang.Throwable> handler)
Copyright © 2018. All rights reserved.