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