Package it.unimi.dsi.fastutil.bytes
Interface ByteHash.Strategy
- Enclosing interface:
ByteHash
public static interface ByteHash.Strategy
A type-specific hash strategy.
- See Also:
-
Method Summary
-
Method Details
-
hashCode
int hashCode(byte e) Returns the hash code of the specified element with respect to this hash strategy.- Parameters:
e
- an element.- Returns:
- the hash code of the given element with respect to this hash strategy.
-
equals
boolean equals(byte a, byte b) Returns true if the given elements are equal with respect to this hash strategy.- Parameters:
a
- an element.b
- another element.- Returns:
- true if the two specified elements are equal with respect to this hash strategy.
-