![JAR search and dependency download from the Maven repository](/logo.png)
net.kemitix.mon.result.ThrowableFunction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mon Show documentation
Show all versions of mon Show documentation
TypeAlias, Result and Maybe for Java
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