Class StringMap
java.lang.Object
org.apache.batik.css.engine.value.StringMap
A simple hashtable, not synchronized, with fixed load factor and with
equality test made with '=='.
- Version:
- $Id: StringMap.java 1733416 2016-03-03 07:07:13Z gadams $
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected int
The number of entriesprotected static final int
The initial capacityprotected StringMap.Entry[]
The underlying array -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
INITIAL_CAPACITY
protected static final int INITIAL_CAPACITYThe initial capacity- See Also:
-
table
The underlying array -
count
protected int countThe number of entries
-
-
Constructor Details
-
StringMap
public StringMap()Creates a new table. -
StringMap
Creates a copy of the given StringMap object.- Parameters:
t
- The table to copy.
-
-
Method Details
-
get
Gets the value corresponding to the given string.- Returns:
- the value or null
-
put
Sets a new value for the given variable- Returns:
- the old value or null
-
rehash
protected void rehash()Rehash the table
-