|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.batik.css.engine.StringIntMap
public class StringIntMap
A simple hashtable, not synchronized, with fixed load factor. Keys are Strings and values are ints.
Nested Class Summary | |
---|---|
protected static class |
StringIntMap.Entry
To manage collisions |
Field Summary | |
---|---|
protected int |
count
The number of entries |
protected StringIntMap.Entry[] |
table
The underlying array |
Constructor Summary | |
---|---|
StringIntMap(int c)
Creates a new table. |
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected StringIntMap.Entry[] table
protected int count
Constructor Detail |
---|
public StringIntMap(int c)
c
- The capacity of the table.Method Detail |
---|
public int get(java.lang.String key)
public void put(java.lang.String key, int value)
protected void rehash()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |