public class StringIntMap
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
protected static class |
StringIntMap.Entry
To manage collisions
|
Modifier and Type | Field and Description |
---|---|
protected int |
count
The number of entries
|
protected StringIntMap.Entry[] |
table
The underlying array
|
Constructor and Description |
---|
StringIntMap(int c)
Creates a new table.
|
Modifier and Type | Method and 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 © 2022 Apache Software Foundation. All Rights Reserved.