bivrost-kotlin icon indicating copy to clipboard operation
bivrost-kotlin copied to clipboard

Generate equals() and hashCode() for Bytes and BytesN

Open fmrsabino opened this issue 5 years ago • 0 comments

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.

fmrsabino avatar Jan 22 '19 10:01 fmrsabino