Moved "util" package contents into correct "utils" package
This commit is contained in:
12
src/com/redstoner/utils/ThrowingSupplier.java
Normal file
12
src/com/redstoner/utils/ThrowingSupplier.java
Normal file
@@ -0,0 +1,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;
|
||||
}
|
||||
Reference in New Issue
Block a user