public class StringIntMap
extends java.lang.Object
| Modifier and Type | Class | Description |
|---|---|---|
protected static class |
StringIntMap.Entry |
To manage collisions
|
| Modifier and Type | Field | Description |
|---|---|---|
protected int |
count |
The number of entries
|
protected StringIntMap.Entry[] |
table |
The underlying array
|
| Constructor | Description |
|---|---|
StringIntMap(int c) |
Creates a new table.
|
| Modifier and Type | Method | Description |
|---|---|---|
int |
get(java.lang.String key) |
Gets the value corresponding to the given string.
|
void |
put(java.lang.String key,
int value) |
Sets a new value for the given variable
|
protected void |
rehash() |
Rehash the table
|
protected StringIntMap.Entry[] table
protected int count
Copyright ? 2018 Apache Software Foundation. All Rights Reserved.