Add java.lang.Boolean#parse(String)

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This commit is contained in:
Johannes Schindelin 2013-10-17 15:03:34 -05:00
parent b3d4f33522
commit 7aca1b1307

View File

@ -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");
}
}