Top Description Methods
org.eclipse.collections.api.block

public Interface HashingStrategy<E>

extends Serializable
Imports
java.io.Serializable

Interface for supporting user defined hashing strategies in Sets and Maps

Method Summary

Modifier and TypeMethod and Description
public int
computeHashCode(E object)

Computes the hashCode of the object as defined by the user.

public boolean
equals(E object1, E object2)

Checks two objects for equality.

Method Detail

computeHashCodeback to summary
public int computeHashCode(E object)

Computes the hashCode of the object as defined by the user.

equalsback to summary
public boolean equals(E object1, E object2)

Checks two objects for equality. The equality check can use the objects own equals() method or a custom method defined by the user. It should be consistent with the computeHashCode() method.