All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jruby.util.func.TriFunction Maven / Gradle / Ivy

package org.jruby.util.func;

import org.jruby.runtime.load.LibrarySearcher;

import java.util.function.BiFunction;
import java.util.function.Function;

/**
 * Extension of {@link java.util.function.BiFunction} to three arguments.
 *
 * @param  first argument type for apply
 * @param  second argument type for apply
 * @param  third argument type for apply
 * @param  return value type for apply
 */
public interface TriFunction {
    default  TriFunction andThen(Function after) {
        return (t, u, v) -> after.apply(apply(t, u, v));
    }

    R apply(T t, U u, V v);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy