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