Uses of Interface
no.digipost.function.ThrowingFunction
-
Packages that use ThrowingFunction Package Description no.digipost no.digipost.function no.digipost.jdbc no.digipost.time no.digipost.util.bisect -
-
Uses of ThrowingFunction in no.digipost
Methods in no.digipost that return ThrowingFunction Modifier and Type Method Description static <T,R,X extends Throwable>
ThrowingFunction<T,R,X>DiggExceptions. mayThrow(ThrowingFunction<T,R,X> function)Convenience to acquire aThrowingFunction-reference from a lambda expression.Methods in no.digipost with parameters of type ThrowingFunction Modifier and Type Method Description static <T,R>
RDiggExceptions. applyUnchecked(ThrowingFunction<T,R,? extends Throwable> function, T argument)Immediatelyapplythe givenfunctionwith the givenargument, and if needed, convert any thrown exceptions to unckecked.static <T extends AutoCloseable,R>
Function<T,R>DiggIO. autoClosing(ThrowingFunction<T,R,? extends Exception> function)Wrap a function which yields a result from processing anAutoCloseable(typically an InputStream or similar) into a newFunctionwhich will always close theAutoCloseablewhen the given function returns, successfully or throwing an exception.static <T,R,X extends Throwable>
ThrowingFunction<T,R,X>DiggExceptions. mayThrow(ThrowingFunction<T,R,X> function)Convenience to acquire aThrowingFunction-reference from a lambda expression. -
Uses of ThrowingFunction in no.digipost.function
Subinterfaces of ThrowingFunction in no.digipost.function Modifier and Type Interface Description static interfaceThrowingFunction.OfUncheckedException<T,R,X extends RuntimeException>Unification ofThrowingFunctionandFunction.Methods in no.digipost.function that return ThrowingFunction Modifier and Type Method Description default <V> ThrowingFunction<T,V,X>ThrowingFunction. andThen(ThrowingFunction<? super R,V,? extends X> after)default <V> ThrowingFunction<V,R,X>ThrowingFunction. compose(ThrowingFunction<? super V,? extends T,? extends X> before)Methods in no.digipost.function with parameters of type ThrowingFunction Modifier and Type Method Description default <V> ThrowingBiFunction<T,U,V,X>ThrowingBiFunction. andThen(ThrowingFunction<? super R,V,? extends X> after)default <V> ThrowingFunction<T,V,X>ThrowingFunction. andThen(ThrowingFunction<? super R,V,? extends X> after)default <V> ThrowingFunction<V,R,X>ThrowingFunction. compose(ThrowingFunction<? super V,? extends T,? extends X> before) -
Uses of ThrowingFunction in no.digipost.jdbc
Methods in no.digipost.jdbc with parameters of type ThrowingFunction Modifier and Type Method Description static <R> RowMapper<R>RowMapper. of(ThrowingFunction<ResultSet,R,SQLException> mapper) -
Uses of ThrowingFunction in no.digipost.time
Methods in no.digipost.time with parameters of type ThrowingFunction Modifier and Type Method Description <T,X extends Exception>
TControllableClock. getWithTimeAdjusted(Consumer<ClockAdjuster> adjustClock, ThrowingFunction<Instant,T,X> resolveValue)Resolve a value with the clock adjusted, and have the clock reset to it's original state after the operation has finished. -
Uses of ThrowingFunction in no.digipost.util.bisect
Methods in no.digipost.util.bisect with parameters of type ThrowingFunction Modifier and Type Method Description static <T,U extends Comparable<? super U>,X extends Exception>
Evaluator<T>Evaluator. having(ThrowingFunction<? super T,? extends U,X> propertyExtractor, U comparableTarget)Evaluate suggestions using an extractedcomparableproperty of the suggestions.
-