MCPcopy Create free account
hub / github.com/antlr/codebuff / compare

Method compare

output/java_guava/1.4.18/Booleans.java:77–80  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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}.

Callers 5

compareToMethod · 0.95
fuzzyCompareMethod · 0.95
compareMethod · 0.95
compareTrueFirstMethod · 0.95
compareFalseFirstMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected