equal
deleted
inserted
replaced
916 * |
916 * |
917 * @return a hash code value for this object, equal to the |
917 * @return a hash code value for this object, equal to the |
918 * primitive {@code int} value represented by this |
918 * primitive {@code int} value represented by this |
919 * {@code Integer} object. |
919 * {@code Integer} object. |
920 */ |
920 */ |
|
921 @Override |
921 public int hashCode() { |
922 public int hashCode() { |
|
923 return Integer.hashCode(value); |
|
924 } |
|
925 |
|
926 /** |
|
927 * Returns a hash code for a {@code int} value; compatible with |
|
928 * {@code Integer.hashCode()}. |
|
929 * |
|
930 * @since 1.8 |
|
931 * |
|
932 * @return a hash code value for a {@code int} value. |
|
933 */ |
|
934 public static int hashCode(int value) { |
922 return value; |
935 return value; |
923 } |
936 } |
924 |
937 |
925 /** |
938 /** |
926 * Compares this object to the specified object. The result is |
939 * Compares this object to the specified object. The result is |