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

Method compare

output/java_guava/1.4.19/UnsignedBytes.java:130–132  ·  view source on GitHub ↗

Compares the two specified byte values, treating them as unsigned values between 0 and 255 inclusive. For example, (byte) -127 is considered greater than (byte) 127 because it is seen as having the value of positive 129. @param a the first byte to compare @pa

(byte a, byte b)

Source from the content-addressed store, hash-verified

128
129
130 public static int compare(byte a, byte b) {
131 return toInt(a) - toInt(b);
132 }
133
134 /**
135 * Returns the least value present in {@code array}.

Callers 2

compareMethod · 0.95
compareMethod · 0.95

Calls 1

toIntMethod · 0.95

Tested by

no test coverage detected