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

java.util.function.Function Maven / Gradle / Ivy

Go to download

JVM AOT compiler currently generating JavaScript, C++, Haxe, with initial focus on Kotlin and games.

There is a newer version: 0.6.8
Show newest version
package java.util.function;

@FunctionalInterface
public interface Function {
	R apply(T t);

	default  Function compose(Function before) {
		return (V v) -> apply(before.apply(v));
	}

	default  Function andThen(Function after) {
		return (T t) -> after.apply(apply(t));
	}

	static  Function identity() {
		return t -> t;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy