For some reason, Arrays.deepHashCode()
cannot work with byte[]
.
Is there any other equivalent?
First off, no need for "Deep". It's a primitive. You don't need Deep.
Just use Arrays.hashCode(byte[] yourArray)
.
Deep implies delving into the Objects contained within the array. Given that you are dealing with a primitive, you just need to use the primitive value itself in the calculation. That's why none of the Deep methods revolve around primitives.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With