Skip to content

Instantly share code, notes, and snippets.

@kogupta
Created July 8, 2018 15:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kogupta/83537ee130e1c0c2c531adf70df0453f to your computer and use it in GitHub Desktop.
Save kogupta/83537ee130e1c0c2c531adf70df0453f to your computer and use it in GitHub Desktop.
function throwing checked exception
@FunctionalInterface
public interface ThrowingFunction<I, O, T extends Throwable> {
O apply(I i) throws T;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment