MCPcopy Create free account
hub / github.com/apache/nutch / compareTo

Method compareTo

src/java/org/apache/nutch/util/Bytes.java:987–989  ·  view source on GitHub ↗

@param left left operand @param right right operand @return 0 if equal, < 0 if left is less than right, etc.

(final byte[] left, final byte[] right)

Source from the content-addressed store, hash-verified

985 * @return 0 if equal, < 0 if left is less than right, etc.
986 */
987 public static int compareTo(final byte[] left, final byte[] right) {
988 return compareTo(left, 0, left.length, right, 0, right.length);
989 }
990
991 /**
992 * Lexographically compare two arrays.

Callers 5

equalsMethod · 0.95
startsWithMethod · 0.95
iterateOnSplitsMethod · 0.95
fetchPageMethod · 0.45
compareMethod · 0.45

Calls

no outgoing calls

Tested by 1

fetchPageMethod · 0.36