Debian Codegraph @

src/main/java/io/reactivex/rxjava3/functions/Function9.java

raw
1 /*
2 * Copyright (c) 2016-present, RxJava Contributors.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in
5 * compliance with the License. You may obtain a copy of the License at
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software distributed under the License is
10 * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See
11 * the License for the specific language governing permissions and limitations under the License.
12 */
13
14 package io.reactivex.rxjava3.functions;
15
16 import io.reactivex.rxjava3.annotations.NonNull;
17
18 /**
19 * A functional interface (callback) that computes a value based on multiple input values.
20 * @param <T1> the first value type
21 * @param <T2> the second value type
22 * @param <T3> the third value type
23 * @param <T4> the fourth value type
24 * @param <T5> the fifth value type
25 * @param <T6> the sixth value type
26 * @param <T7> the seventh value type
27 * @param <T8> the eighth value type
28 * @param <T9> the ninth value type
29 * @param <R> the result type
30 */
31 @FunctionalInterface
32 public interface Function9<@NonNull T1, @NonNull T2, @NonNull T3, @NonNull T4, @NonNull T5, @NonNull T6, @NonNull T7, @NonNull T8, @NonNull T9, @NonNull R> {
33 /**
34 * Calculate a value based on the input values.
35 * @param t1 the first value
36 * @param t2 the second value
37 * @param t3 the third value
38 * @param t4 the fourth value
39 * @param t5 the fifth value
40 * @param t6 the sixth value
41 * @param t7 the seventh value
42 * @param t8 the eighth value
43 * @param t9 the ninth value
44 * @return the result value
45 * @throws Throwable if the implementation wishes to throw any type of exception
46 */
47 R apply(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8, T9 t9) throws Throwable;
48 }