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

net.kemitix.mon.result.ThrowableFunction Maven / Gradle / Ivy

There is a newer version: 3.2.0
Show newest version
package net.kemitix.mon.result;

/**
 * Represents a function that accepts one argument and produces a result.
 * This is a functional interface whose functional method is apply(Object).
 *
 * @param  the type of the input to the function
 * @param  the type of the result of the function
 * @param  the type of the exception that could be thrown
 */
@FunctionalInterface
public interface ThrowableFunction {

    /**
     * Applies this function to the given argument.
     *
     * @param value the function argument
     * @return the function result
     * @throws E if the function fails
     */
    R apply(T value) throws E;

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy