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

com.github.edgar615.util.function.Function3 Maven / Gradle / Ivy

package com.github.edgar615.util.function;

import java.util.Objects;
import java.util.function.Function;

/**
 * Created by Edgar on 2016/8/1.
 *
 * @author Edgar  Date 2016/8/1
 */
@FunctionalInterface
public interface Function3 {

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

  default  Function3 andThen(Function after) {
    Objects.requireNonNull(after);
    return (T1 t1, T2 t2, T3 t3) -> after.apply(apply(t1, t2, t3));
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy