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