org.freedesktop.dbus.utils.IThrowingSupplier Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dbus-java-core Show documentation
Show all versions of dbus-java-core Show documentation
Improved version of the DBus-Java library provided by freedesktop.org (https://dbus.freedesktop.org/doc/dbus-java/).
package org.freedesktop.dbus.utils;
/**
* Supplier which allows throwing any exception.
*
* @param type which is supplied
* @param type of exception which gets thrown
*
* @author hypfvieh
* @since v1.3.0 - 2023-01-12
*/
@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;
}