hash method Null safety

int hash(
  1. E e
)

Get a hashcode of an element.

The hashcode should be compatible with equals, so that if equals(a, b) then hash(a) == hash(b).

Implementation

int hash(E e);