`java.util.Arrays` has methods for hashCode generation on primitive arrays that are equivalent to `nullSafeHashCode` They do however calculate different hash values. If this was tolerable, then the JDK methods could be used.