CharHashFunction
, Serializable
public class DefaultCharHashFunction extends Object implements CharHashFunction, Serializable
Modifier and Type | Field | Description |
---|---|---|
static CharHashFunction |
INSTANCE |
Default instance of this hash function.
|
Modifier | Constructor | Description |
---|---|---|
protected |
DefaultCharHashFunction() |
Default constructor to be invoked by sub-classes.
|
Modifier and Type | Method | Description |
---|---|---|
int |
hash(char v) |
Returns a hash code for a specified char value.
|
public static final CharHashFunction INSTANCE
protected DefaultCharHashFunction()
public int hash(char v)
CharHashFunction
hash
in interface CharHashFunction
v
- the value for which to return a hash code.Copyright © 2011–2019. All rights reserved.