Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 70de5f62138a3f5b00eeb15ef603e57dcdb05c53 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*****************************************************************************
 * Copyright (c) 2021 Christian W. Damus, CEA LIST, and others.
 *
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License 2.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-2.0/
 *
 * SPDX-License-Identifier: EPL-2.0
 *
 * Contributors:
 *   Christian W. Damus - Initial API and implementation
 *
 *****************************************************************************/

package org.eclipse.papyrus.infra.tools.util;

import java.util.function.BiFunction;

/**
 * A function analogous to the {@link BiFunction} that takes three inputs.
 *
 * @since 4.2
 */
@FunctionalInterface
public interface TriFunction<F, G, H, R> {

	/**
	 * Process three inputs to obtain a result.
	 *
	 * @param f
	 *            the first input
	 * @param g
	 *            the second input
	 * @param h
	 *            the third input
	 * @return the result
	 */
	R apply(F f, G g, H h);

}

Back to the top