forked from PCGen/pcgen
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added JavaDoc to Exit* and GracefulExit classes.
- Loading branch information
Showing
3 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,7 +1,15 @@ | ||
package util; | ||
|
||
/** | ||
* A functional interface that can be used to exit the JVM. | ||
*/ | ||
@FunctionalInterface | ||
public interface ExitFunction | ||
{ | ||
/** | ||
* Is executed when the JVM should exit. | ||
* | ||
* @param status The status code to exit with | ||
*/ | ||
void exit(int status); | ||
} |
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 |
---|---|---|
@@ -1,7 +1,16 @@ | ||
package util; | ||
|
||
/** | ||
* A functional interface that can be used to intercept the exit of the JVM. | ||
*/ | ||
@FunctionalInterface | ||
public interface ExitInterceptor | ||
{ | ||
/** | ||
* Is executed when the JVM should exit. | ||
* | ||
* @param status The status code to exit with | ||
* @return true if the exit should be allowed, false if it should be intercepted | ||
*/ | ||
boolean intercept(int status); | ||
} |
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