equal
deleted
inserted
replaced
387 * Returns a hash code for this {@code Byte}; equal to the result |
387 * Returns a hash code for this {@code Byte}; equal to the result |
388 * of invoking {@code intValue()}. |
388 * of invoking {@code intValue()}. |
389 * |
389 * |
390 * @return a hash code value for this {@code Byte} |
390 * @return a hash code value for this {@code Byte} |
391 */ |
391 */ |
|
392 @Override |
392 public int hashCode() { |
393 public int hashCode() { |
|
394 return Byte.hashCode(value); |
|
395 } |
|
396 |
|
397 /** |
|
398 * Returns a hash code for a {@code byte} value; compatible with |
|
399 * {@code Byte.hashCode()}. |
|
400 * |
|
401 * @since 1.8 |
|
402 * |
|
403 * @return a hash code value for a {@code byte} value. |
|
404 */ |
|
405 public static int hashCode(byte value) { |
393 return (int)value; |
406 return (int)value; |
394 } |
407 } |
395 |
408 |
396 /** |
409 /** |
397 * Compares this object to the specified object. The result is |
410 * Compares this object to the specified object. The result is |