mirror of
https://github.com/corda/corda.git
synced 2025-03-15 16:46:12 +00:00
Add java.lang.Boolean#parse(String)
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This commit is contained in:
parent
b3d4f33522
commit
7aca1b1307
@ -58,4 +58,8 @@ public final class Boolean implements Comparable<Boolean> {
|
||||
public boolean booleanValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static boolean parseBoolean(String string) {
|
||||
return string != null && string.equalsIgnoreCase("true");
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user