com.google.gwt.emul.java.util.function.Function Maven / Gradle / Ivy
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;
}
}