Compares the two specified boolean values in the standard way (false is considered less than true). The sign of the value returned is the same as that of ((Boolean) a).compareTo(b). Note for Java 7 and later: this method should be treated as deprecated; use
(
boolean a, boolean b)
| 75 | |
| 76 | |
| 77 | public static int compare( |
| 78 | boolean a, boolean b) { |
| 79 | return (a == b) ? 0 : (a ? 1 : -1); |
| 80 | } |
| 81 | |
| 82 | /** |
| 83 | * Returns {@code true} if {@code target} is present as an element anywhere in {@code array}. |
no outgoing calls
no test coverage detected