Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow null values in ObjectMap Lists
- Loading branch information
Showing
4 changed files
with
41 additions
and
10 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
GalaxiAPI/global/src/net/ME1312/Galaxi/Library/Callback/ExceptionCallback.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package net.ME1312.Galaxi.Library.Callback; | ||
|
||
/** | ||
* Exception Callback | ||
* | ||
* @param <T> Object | ||
*/ | ||
public interface ExceptionCallback<T> { | ||
/** | ||
* Callback | ||
* | ||
* @param obj Object | ||
* @throws Throwable Exception | ||
*/ | ||
void run(T obj) throws Throwable; | ||
} |
18 changes: 18 additions & 0 deletions
18
GalaxiAPI/global/src/net/ME1312/Galaxi/Library/Callback/ExceptionReturnCallback.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package net.ME1312.Galaxi.Library.Callback; | ||
|
||
/** | ||
* Exception Callback with a return parameter | ||
* | ||
* @param <T> Object | ||
* @param <R> Return parameter | ||
*/ | ||
public interface ExceptionReturnCallback<T, R> { | ||
/** | ||
* Callback | ||
* | ||
* @param obj Object | ||
* @return Return parameter | ||
* @throws Throwable Exception | ||
*/ | ||
R run(T obj) throws Throwable; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters