bivrost-kotlin
bivrost-kotlin copied to clipboard
Generate equals() and hashCode() for Bytes and BytesN
Expected behavior
Comparing different Bytes
and BytesN
based on their values, not reference. Right now we need to access their contents for comparison.
Actual behavior
Comparing these classes will compare the references which is not really useful for most use cases. We should implement the equals()
and hashCode()
methods in order to easily compare their values.