V1 - Input type.V2 - Input type.V3 - Input type.V4 - Input type.V5 - Input type.V6 - Input type.V7 - Input type.V8 - Input type.R - Output type.@FunctionalInterface public static interface Throwing.Function8<V1,V2,V3,V4,V5,V6,V7,V8,R>
apply(Object, Object, Object, Object, Object, Object, Object, Object) method throws checked exceptions using Throwing.sneakyThrow(Throwable) method.| Modifier and Type | Method and Description |
|---|---|
default R |
apply(V1 v1,
V2 v2,
V3 v3,
V4 v4,
V5 v5,
V6 v6,
V7 v7,
V8 v8)
Apply this function to the given argument and produces a result.
|
default Throwing.Function8<V1,V2,V3,V4,V5,V6,V7,V8,R> |
memoized()
A function that remember/cache previous executions.
|
default <X extends Throwable> |
onFailure(Class<X> type,
Consumer<X> action)
Apply this function and run the given action in case of exception.
|
default Throwing.Function8<V1,V2,V3,V4,V5,V6,V7,V8,R> |
onFailure(Consumer<Throwable> action)
Apply this function and run the given action in case of exception.
|
default Throwing.Function8<V1,V2,V3,V4,V5,V6,V7,V8,R> |
orElse(R defaultValue)
Apply this function and returns the given default value in case of exception.
|
default Throwing.Function8<V1,V2,V3,V4,V5,V6,V7,V8,R> |
orElse(Throwing.Supplier<R> defaultValue)
Apply this function and returns the given default value in case of exception.
|
default <X extends Throwable> |
recover(Class<? extends X> type,
Function<X,R> fn)
Apply this function or recover from a specific exception in case of exception.
|
default Throwing.Function8<V1,V2,V3,V4,V5,V6,V7,V8,R> |
recover(Function<Throwable,R> fn)
Apply this function or recover from it in case of exception.
|
R |
tryApply(V1 v1,
V2 v2,
V3 v3,
V4 v4,
V5 v5,
V6 v6,
V7 v7,
V8 v8)
Apply this function to the given argument and produces a result.
|
default <X extends Throwable> |
unwrap(Class<? extends X> type)
Apply this function and unwrap any resulting exception.
|
default Throwing.Function8<V1,V2,V3,V4,V5,V6,V7,V8,R> |
wrap(Function<Throwable,Exception> wrapper)
Apply this function and wrap any resulting exception.
|
R tryApply(V1 v1, V2 v2, V3 v3, V4 v4, V5 v5, V6 v6, V7 v7, V8 v8) throws Throwable
v1 - Input argument.v2 - Input argument.v3 - Input argument.v4 - Input argument.v5 - Input argument.v6 - Input argument.v7 - Input argument.v8 - Input argument.Throwable - If something goes wrong.default R apply(V1 v1, V2 v2, V3 v3, V4 v4, V5 v5, V6 v6, V7 v7, V8 v8)
v1 - Input argument.v2 - Input argument.v3 - Input argument.v4 - Input argument.v5 - Input argument.v6 - Input argument.v7 - Input argument.v8 - Input argument.default Throwing.Function8<V1,V2,V3,V4,V5,V6,V7,V8,R> onFailure(Consumer<Throwable> action)
action - Action to run when exception occurs.default <X extends Throwable> Throwing.Function8<V1,V2,V3,V4,V5,V6,V7,V8,R> onFailure(Class<X> type, Consumer<X> action)
X - Exception type.type - Exception filter.action - Action to run when exception occurs.default Throwing.Function8<V1,V2,V3,V4,V5,V6,V7,V8,R> wrap(Function<Throwable,Exception> wrapper)
wrapper - Exception wrapper.default <X extends Throwable> Throwing.Function8<V1,V2,V3,V4,V5,V6,V7,V8,R> unwrap(Class<? extends X> type)
X - Exception type.type - Exception to unwrap.default Throwing.Function8<V1,V2,V3,V4,V5,V6,V7,V8,R> orElse(R defaultValue)
defaultValue - Exceptional default value.default Throwing.Function8<V1,V2,V3,V4,V5,V6,V7,V8,R> orElse(Throwing.Supplier<R> defaultValue)
defaultValue - Exceptional default value.default Throwing.Function8<V1,V2,V3,V4,V5,V6,V7,V8,R> recover(Function<Throwable,R> fn)
fn - Exception recover.default <X extends Throwable> Throwing.Function8<V1,V2,V3,V4,V5,V6,V7,V8,R> recover(Class<? extends X> type, Function<X,R> fn)
X - Exception type.type - Exception filter.fn - Exception recover.Copyright © 2017. All rights reserved.