-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed event hidden and shareable overridden with defaults on every up…
…date Removed done todo
- Loading branch information
1 parent
1b42b6c
commit 8430dc3
Showing
6 changed files
with
30 additions
and
11 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package de.webalf.slotbot.util; | ||
|
||
import lombok.experimental.UtilityClass; | ||
|
||
/** | ||
* @author Alf | ||
* @since 21.10.2021 | ||
*/ | ||
@UtilityClass | ||
public final class BooleanUtils { | ||
/** | ||
* Parse Boolean that can handle null bools. Returns {@code fallback} if null | ||
* | ||
* @param b Boolean to parse | ||
* @param fallback to use if b is null | ||
* @return Boolean converted to boolean or fallback if Boolean was null | ||
*/ | ||
public static boolean parseBoolean(Boolean b, boolean fallback) { | ||
return b != null ? b : fallback; | ||
} | ||
} |
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