/*
 * Java Genetic Algorithm Library (@__identifier__@).
 * Copyright (c) @__year__@ Franz Wilhelmstötter
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * Author:
 *    Franz Wilhelmstötter (franz.wilhelmstoetter@gmx.at)
 */
package org.jenetics.util;

/**
 * @author <a href="mailto:franz.wilhelmstoetter@gmx.at">Franz Wilhelmstötter</a>
 * @version !__version__!
 * @since !__version__!
 */
@FunctionalInterface
public interface Function3<T1, T2, T3, R> {

	public R apply(final T1 t1, final T2 t2, final T3 t3);

}

@@ -766,269 +766,1673 @@
 l;%0A%0A
-/**%0A * @author %3Ca href=%22mailto:franz.wilhelmstoetter@gmx.at%22%3EFranz Wilhelmst%C3%B6tter%3C/a%3E%0A * @version !__version__!%0A * @since !__version__!%0A */%0A@FunctionalInterface%0Apublic interface Function3%3CT1, T2, T3, R%3E %7B%0A%0A%09public R apply(final T1 t1, final T2 t2, final T3 t3);
+import java.util.Objects;%0Aimport java.util.function.Function;%0A%0A/**%0A * Represents a function that accepts three arguments and produces a result.%0A * This is the three-arity specialization of %7B@link Function%7D.%0A *%0A * @param %3CT1%3E the type of the first argument to the function%0A * @param %3CT2%3E the type of the second argument to the function%0A * @param %3CT3%3E the type of the third argument to the function%0A * @param %3CR%3E the type of the result of the function%0A *%0A * @see Function%0A *%0A * @author %3Ca href=%22mailto:franz.wilhelmstoetter@gmx.at%22%3EFranz Wilhelmst%C3%B6tter%3C/a%3E%0A * @version !__version__!%0A * @since !__version__!%0A */%0A@FunctionalInterface%0Apublic interface Function3%3CT1, T2, T3, R%3E %7B%0A%0A%09/**%0A%09 * Applies this function to the given arguments.%0A%09 *%0A%09 * @param t1 the first function argument%0A%09 * @param t2 the second function argument%0A%09 * @param t3 the third function argument%0A%09 * @return the function result%0A%09 */%0A%09public R apply(final T1 t1, final T2 t2, final T3 t3);%0A%0A%09/**%0A%09 * Returns a composed function that first applies this function to its input,%0A%09 * and then applies the %7B@code after%7D function to the result.%0A%09 *%0A%09 * @param %3CV%3E the type of output of the %7B@code after%7D function, and of the%0A%09 *           composed function%0A%09 * @param after the function to apply after this function is applied%0A%09 * @return a composed function that first applies this function and then%0A%09 *         applies the %7B@code after%7D function%0A%09 * @throws NullPointerException if after is %7B@code null%7D%0A%09 */%0A%09public default %3CV%3E Function3%3CT1, T2, T3, V%3E%0A%09andThen(Function%3C? super R, ? extends V%3E after) %7B%0A%09%09Objects.requireNonNull(after);%0A%09%09return (T1 t1, T2 t2, T3 t3) -%3E after.apply(apply(t1, t2, t3));%0A%09%7D
 %0A%0A%7D%0A

Add javadoc.