public class PerfectHash
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
PerfectHash(int[] select,
java.lang.String... keywords)
Constructs the perfect hash of strings.
|
PerfectHash(java.lang.String... keywords)
Constructs the perfect hash of strings.
|
| Modifier and Type | Method and Description |
|---|---|
int |
get(java.lang.String key)
Returns the index of a string.
|
public PerfectHash(java.lang.String... keywords)
public PerfectHash(int[] select,
java.lang.String... keywords)
select - The character positions in keywords used to calculate the hash.