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

com.google.gwt.emul.java.util.function.Function Maven / Gradle / Ivy

The newest version!
package java.util.function;

@FunctionalInterface
public interface Function {

  default  Function andThen(Function after) {
    assert after != null;
    return (T t) -> after.apply(Function.this.apply(t));
  }

  R apply(T t);

  default  Function compose(Function before) {
    assert before != null;
    return (V v) -> Function.this.apply(before.apply(v));
  }

  static  Function identity() {
    return (T x) -> x;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy