uk.ac.starlink.util.IOSupplier Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of stil Show documentation
Show all versions of stil Show documentation
Starlink Tables Infrastructure Library
package uk.ac.starlink.util;
import java.io.IOException;
/**
* Supplier-like interface that allows an IOException to be thrown.
*
* @see java.util.function.Supplier
*/
@FunctionalInterface
public interface IOSupplier {
/**
* Gets a result.
*
* @return result
* @throws IOException in case of error
*/
T get() throws IOException;
}