Debian Codegraph @

src/main/java/io/reactivex/rxjava3/functions/Function7.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 <R> the result type
28 */
29 @FunctionalInterface
30 public interface Function7<@NonNull T1, @NonNull T2, @NonNull T3, @NonNull T4, @NonNull T5, @NonNull T6, @NonNull T7, @NonNull R> {
31 /**
32 * Calculate a value based on the input values.
33 * @param t1 the first value
34 * @param t2 the second value
35 * @param t3 the third value
36 * @param t4 the fourth value
37 * @param t5 the fifth value
38 * @param t6 the sixth value
39 * @param t7 the seventh value
40 * @return the result value
41 * @throws Throwable if the implementation wishes to throw any type of exception
42 */
43 R apply(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7) throws Throwable;
44 }