Package org.maproulette.client.utilities
Interface ThrowingFunction<T,R>
-
- Type Parameters:
T- The type of object that the function consumesR- The type of object that the function produces
- All Superinterfaces:
java.util.function.Function<T,R>
public interface ThrowingFunction<T,R> extends java.util.function.Function<T,R>Wraps a consumer, so that we can throw exceptions properly when using lambda functions
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Rapply(T input)RapplyThrows(T input)static <T,R>
java.util.function.Function<T,R>throwingFunctionWrapper(ThrowingFunction<T,R> throwingFunction)
-
-
-
Method Detail
-
throwingFunctionWrapper
static <T,R> java.util.function.Function<T,R> throwingFunctionWrapper(ThrowingFunction<T,R> throwingFunction)
-
-