Archived
0
This repository has been archived on 2024-08-30. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
Modules/src/com/redstoner/utils/ThrowingSupplier.java

13 lines
332 B
Java

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;
}