blob: b11698dee4d1eb33b7fb426a6c1327c110e0c260 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.yolean.function;
/**
* Functional interface that mirrors the Supplier interface, but allows for an
* exception to be thrown.
*
* @author oyving
*/
@FunctionalInterface
public interface ThrowingSupplier<R, E extends Throwable> {
R get() throws E;
}
|