mirror of
https://github.com/corda/corda.git
synced 2025-01-07 13:38:47 +00:00
Add the Boolean#getBoolean method
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This commit is contained in:
parent
95fcc9ac8e
commit
0e3e719dd6
@ -59,6 +59,10 @@ public final class Boolean implements Comparable<Boolean> {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static boolean getBoolean(String name) {
|
||||
return parseBoolean(System.getProperty(name));
|
||||
}
|
||||
|
||||
public static boolean parseBoolean(String string) {
|
||||
return string != null && string.equalsIgnoreCase("true");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user