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

com.github.hypfvieh.function.IThrowingSupplier Maven / Gradle / Ivy

Go to download

A collection of utils commonly used in my projects. Feel free to use it (or parts of it) in your own projects.

The newest version!
package com.github.hypfvieh.function;

/**
 * Supplier which allows throwing any exception.
 *
 * @param  type which is supplied
 * @param  type of exception which gets thrown
 *
 * @author hypfvieh
 * @since v1.2.1 - 2024-12-26
 */
@FunctionalInterface
public interface IThrowingSupplier {
    /**
     * Returns the result of the supplier or throws an exception.
     *
     * @return result of supplied function
     * @throws T exception
     */
    V get() throws T;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy