| Package | Description |
|---|---|
| org.eclipse.collections.impl.block.factory |
This package contains factory implementations for
Function, Predicate, SerializableComparator and Procedure. |
| org.eclipse.collections.impl.block.predicate.checked |
This package contains abstract implementations of
Predicate and Predicate2. |
| Modifier and Type | Method and Description |
|---|---|
static <T1,T2> Predicate2<T1,T2> |
Predicates2.throwing(ThrowingPredicate2<T1,T2> throwingPredicate2,
Function3<T1,T2,? super Throwable,? extends RuntimeException> rethrow)
Allows a lambda or anonymous inner class that needs to throw a checked exception to be safely wrapped as a
Procedure2 that will throw a user specified RuntimeException based on the provided function.
|
static <T,P> Predicate2<T,P> |
Predicates2.throwing(ThrowingPredicate2<T,P> throwingPredicate2)
Allows a lambda or anonymous inner class that needs to throw a checked exception to be safely wrapped as a
Predicate2 that will throw a RuntimeException, wrapping the checked exception that is the cause.
|
| Modifier and Type | Class and Description |
|---|---|
class |
CheckedPredicate2<T,P> |
Copyright © 2004–2022. All rights reserved.