Arrays.equals(byte [], byte []) and the similar methods for different types of
arrays are handy. It would be nice to have Arrays.hashCode(byte []) and similar
methods for the different types of arrays as well. This would provide a single
location for code that is or should be used widely (in hashCode methods for classes where the results of the equals method is based on the contents of an array).
arrays are handy. It would be nice to have Arrays.hashCode(byte []) and similar
methods for the different types of arrays as well. This would provide a single
location for code that is or should be used widely (in hashCode methods for classes where the results of the equals method is based on the contents of an array).
- duplicates
-
JDK-4168079 Implement toString(), equals() & hashCode() for arrays
- Closed