Package org.apache.batik.css.engine
Class StringIntMap
- java.lang.Object
-
- org.apache.batik.css.engine.StringIntMap
-
public class StringIntMap extends java.lang.Object
A simple hashtable, not synchronized, with fixed load factor. Keys are Strings and values are ints.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
StringIntMap.Entry
To manage collisions
-
Field Summary
Fields Modifier and Type Field Description protected int
count
The number of entriesprotected StringIntMap.Entry[]
table
The underlying array
-
Constructor Summary
Constructors Constructor Description StringIntMap(int c)
Creates a new table.
-
Method Summary
All Methods Instance Methods Concrete Methods 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 variableprotected void
rehash()
Rehash the table
-
-
-
Field Detail
-
table
protected StringIntMap.Entry[] table
The underlying array
-
count
protected int count
The number of entries
-
-