Optional method which is used to create a hash from an event
final int Function(S e)? hashCodeMethod;