Package | Description |
---|---|
org.eclipse.collections.impl.block.factory |
This package contains factory implementations for
Function , Predicate , SerializableComparator and Procedure . |
org.eclipse.collections.impl.block.procedure.checked |
This package contains abstract implementations of
Procedure and Procedure2 . |
Modifier and Type | Method | Description |
---|---|---|
static <T,P> Procedure2<T,P> |
Procedures2.throwing(ThrowingProcedure2<T,P> throwingProcedure2) |
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 RuntimeException, wrapping the checked exception that is the cause.
|
static <T1,T2> Procedure2<T1,T2> |
Procedures2.throwing(ThrowingProcedure2<T1,T2> throwingProcedure,
Function3<T1,T2,? super java.lang.Throwable,? extends java.lang.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.
|
Modifier and Type | Class | Description |
---|---|---|
class |
CheckedProcedure2<T,P> |
|
class |
MultimapKeyValuesSerializingProcedure<K,V> |
Copyright © 2004–2020. All rights reserved.