summaryrefslogtreecommitdiff
path: root/src/main/java/com/redstoner/utils/ThrowingSupplier.java
blob: 986746bd713a09ce86b5acfaa46bde1a3840a754 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
package com.redstoner.utils;

/**
 * A supplier with a throws declaration.
 * Once again, I have more solid alternatives, but if you want it in your utils... be my guest :D
 *
 * @param <T> The type of object computed by this supplier.
 */
@FunctionalInterface
public interface ThrowingSupplier<T> {
    T get() throws Throwable;
}