Convert an integer to a boolean. Because of how Java handles upgrading numbers, this will also cover byte and char (as they will upgrade to an int without any sort of explicit cast). The preprocessor will convert boolean(what) to parseBoolean(what). @return false if 0, true if any othe
(int what)
| 9404 | * @return false if 0, true if any other number |
| 9405 | */ |
| 9406 | static final public boolean parseBoolean(int what) { |
| 9407 | return (what != 0); |
| 9408 | } |
| 9409 | |
| 9410 | /* |
| 9411 | // removed because this makes no useful sense |
no outgoing calls
no test coverage detected