MCPcopy Index your code
hub / github.com/antlr/codebuff / compare

Method compare

output/java_guava/1.4.18/Ints.java:135–137  ·  view source on GitHub ↗

Compares the two specified int values. The sign of the value returned is the same as that of ((Integer) a).compareTo(b). Note for Java 7 and later: this method should be treated as deprecated; use the equivalent Integer#compare method instead. @param a the first {

(int a, int b)

Source from the content-addressed store, hash-verified

133
134
135 public static int compare(int a, int b) {
136 return (a < b) ? -1 : ((a > b) ? 1 : 0);
137 }
138
139 /**
140 * Returns {@code true} if {@code target} is present as an element anywhere in {@code array}.

Callers 15

compareMethod · 0.95
compareMethod · 0.95
compareMethod · 0.95
compareMethod · 0.95
subMultisetMethod · 0.45
subMapMethod · 0.45
createCollectionMethod · 0.45
compareElementsMethod · 0.45
crossOverUpMethod · 0.45
getCorrectLastElementMethod · 0.45
crossOverMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected