public class SimpleStringHasher extends AbstractStringHasher
StringHasher
that is compatible to
String.hashCode()
.Constructor and Description |
---|
SimpleStringHasher()
The constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
getHashCode(char[] string,
int start,
int end)
This method gets the hash-code for the specified
subsequence of the
given string . |
getHashCode, getHashCode, getHashCodes, getHashCodes, getHashCodes, getHashCodes
public int getHashCode(char[] string, int start, int end)
StringHasher
string
- is the char-array containing the substring
to hash.start
- is the index of the first character to include into the hash.end
- is the index one before the last character to include into the hash.Object.hashCode()
Copyright © 2001–2016 mmm-Team. All rights reserved.