blob: cb2c893e86142c1aa12afce6e582505118f4bad2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// Copyright Vespa.ai. 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;
}
|