java.util.function.Function Maven / Gradle / Ivy
/* Copyright (c) The m-m-m Team, Licensed under the Apache License, Version 2.0
* http://www.apache.org/licenses/LICENSE-2.0 */
package java.util.function;
/**
* This is the back-port for the according interface of Java 1.8+.
* ATTENTION:
* The Java 1.8+ version of this interface also defines default methods that can NOT be supported in prior
* java versions. Therefore, mmm-util-core
offers helper methods that give similar features.
* However, we strongly recommend that you update your project to Java 1.8+ to make use of closures (lambda
* expressions) and other benefits.
*
* @param the generic type of the input to the {@link #apply(Object)} operation.
* @param the generic type of the result of the {@link #apply(Object)} operation.
*
* @author Joerg Hohwiller (hohwille at users.sourceforge.net)
* @since 1.0.0
*/
public interface Function {
/**
* Compute the result of applying the function to the input argument
*
* @param t the input object
* @return the function result
*/
R apply(T t);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy