Converts the specified string to a boolean value. @param string string to be checked @return result of check, or null if the input is invalid
(final String string)
| 68 | * @return result of check, or {@code null} if the input is invalid |
| 69 | */ |
| 70 | public static Boolean toBoolean(final String string) { |
| 71 | return isTrue(string) ? Boolean.TRUE : isFalse(string) ? Boolean.FALSE : null; |
| 72 | } |
| 73 | |
| 74 | /** |
| 75 | * Checks if the specified string is "yes", "true", "on" or "1". |
no test coverage detected