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

me.shaftesbury.utils.functional.Func0 Maven / Gradle / Ivy

There is a newer version: 1.17
Show newest version
package me.shaftesbury.utils.functional;

/**
 * The Func0 interface is designed to represent lambda / anonymous functions which are defined and used in situ. This is similar to the
 * {@link me.shaftesbury.utils.functional.Func} interface except this interface models a function that takes no arguments.
 * See Lambda function
 * @param  the type of the return value
 * @see Closure
 */
public interface Func0 {
    /**
     * Call apply to evaluate the function object
     * @return an element of type R
     */
    R apply();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy