aboutsummaryrefslogtreecommitdiffstats
path: root/vespajlib/src/main/java/com/yahoo/yolean/function/ThrowingSupplier.java
blob: 348c1c739ee638c64cffbff65018f3e403dae72d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Copyright Yahoo. 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;
}