java.util.function.Function Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jtransc-rt Show documentation
Show all versions of jtransc-rt Show documentation
JVM AOT compiler currently generating JavaScript, C++, Haxe, with initial focus on Kotlin and games.
package java.util.function;
@FunctionalInterface
public interface Function {
R apply(T t);
default Function compose(Function super V, ? extends T> before) {
return (V v) -> apply(before.apply(v));
}
default Function andThen(Function super R, ? extends V> after) {
return (T t) -> after.apply(apply(t));
}
static Function identity() {
return t -> t;
}
}