Package it.unimi.dsi.fastutil.chars
Interface CharHash.Strategy
-
- Enclosing interface:
- CharHash
public static interface CharHash.StrategyA type-specific hash strategy.- See Also:
Hash.Strategy
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanequals(char a, char b)Returns true if the given elements are equal with respect to this hash strategy.inthashCode(char e)Returns the hash code of the specified element with respect to this hash strategy.
-
-
-
Method Detail
-
hashCode
int hashCode(char 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(char a, char 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.
-
-