net.lenni0451.commandlib.utils.interfaces.ThrowingSupplier Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of CommandLib Show documentation
Show all versions of CommandLib Show documentation
A command lib with a simple and powerful API
The newest version!
package net.lenni0451.commandlib.utils.interfaces;
import java.util.function.Supplier;
/**
* A functional interface equivalent to {@link Supplier} but with the ability to throw an exception.
*
* @param The type of the value to supply
*/
@FunctionalInterface
public interface ThrowingSupplier {
/**
* Get the value.
*
* @return The value
* @throws Throwable If an exception occurs
*/
T get() throws Throwable;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy