T
- argument typeE
- the type of Throwable declared@FunctionalInterface public interface CheckedPredicate<T,E extends Throwable>
Predicate
Predicate
Modifier and Type | Method and Description |
---|---|
default CheckedPredicate<T,E> |
and(CheckedPredicate<? super T,? extends E> other)
|
default CheckedPredicate<T,E> |
negate()
|
default CheckedPredicate<T,E> |
or(CheckedPredicate<? super T,? extends E> other)
|
boolean |
test(T t)
|
boolean test(T t) throws E extends Throwable
t
- argumenttrue
if predicate matches, else false
Throwable
- any throwablePredicate.test(Object)
default CheckedPredicate<T,E> and(CheckedPredicate<? super T,? extends E> other)
other
- the predicate to be compounded with logical andCheckedPredicate
NullPointerException
- if other
is null
default CheckedPredicate<T,E> negate()
CheckedPredicate
default CheckedPredicate<T,E> or(CheckedPredicate<? super T,? extends E> other)
other
- the predicate to be compounded with logical orCheckedPredicate
NullPointerException
- if other
is null
Copyright © 2016–2018 earcam. All rights reserved.