Uses of Interface
no.digipost.function.ThrowingFunction
Packages that use ThrowingFunction
Package
Description
-
Uses of ThrowingFunction in no.digipost
Methods in no.digipost that return ThrowingFunctionModifier and TypeMethodDescriptionstatic final <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 ThrowingFunctionModifier and TypeMethodDescriptionstatic <T,R> R DiggExceptions.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 final <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.functionModifier and TypeInterfaceDescriptionstatic interfaceThrowingFunction.OfUncheckedException<T,R, X extends RuntimeException> Unification ofThrowingFunctionandFunction.Methods in no.digipost.function that return ThrowingFunctionModifier and TypeMethodDescriptiondefault <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 ThrowingFunctionModifier and TypeMethodDescriptiondefault <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 ThrowingFunctionModifier and TypeMethodDescriptionstatic <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 ThrowingFunctionModifier and TypeMethodDescription<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 ThrowingFunctionModifier and TypeMethodDescriptionstatic <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.