java.util.Hashtable except that: The overall result is that it's less expensive to use these in
performance-critical locations, in terms both of CPU and memory,
than java.util.Hashtable instances. In this package
it makes a significant difference when normalizing attributes,
which is done for each start-element construct.
| Modifier and Type | Class and Description |
|---|---|
| private static class | SimpleHashtable.Entry
Hashtable collision list. |
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private SimpleHashtable. | |
| private int | |
| private static final float | |
| private SimpleHashtable. | |
| private int |
| Access | Constructor and Description |
|---|---|
| public | SimpleHashtable(int
the initial capacity of the hashtable. initialCapacity)Constructs a new, empty hashtable with the specified initial capacity. |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public Object | |
| public Object | getNonInterned(String key)
Returns the value to which the specified key is mapped in this hashtable ... |
| public boolean | hasMoreElements()
Implements java. |
| public Enumeration | Returns: an enumeration of the keys in this hashtable.Returns an enumeration of the keys in this hashtable. |
| public Object | nextElement()
Implements java. |
| public Object | |
| private void | rehash()
Increases the capacity of and internally reorganizes this hashtable, in order to accommodate and access its entries more efficiently. |
| public int |
| count | back to summary |
|---|---|
| private int count | |
| current | back to summary |
|---|---|
| private SimpleHashtable. | |
| currentBucket | back to summary |
|---|---|
| private int currentBucket | |
| loadFactor | back to summary |
|---|---|
| private static final float loadFactor | |
| table | back to summary |
|---|---|
| private SimpleHashtable. | |
| threshold | back to summary |
|---|---|
| private int threshold | |
| SimpleHashtable | back to summary |
|---|---|
| public SimpleHashtable(int initialCapacity) Constructs a new, empty hashtable with the specified initial capacity.
| |
| SimpleHashtable | back to summary |
|---|---|
| public SimpleHashtable() Constructs a new, empty hashtable with a default capacity. | |
| clear | back to summary |
|---|---|
| public void clear() | |
| get | back to summary |
|---|---|
| public Object get(String key) Returns the value to which the specified key is mapped in this hashtable. | |
| getNonInterned | back to summary |
|---|---|
| public Object getNonInterned(String key) Returns the value to which the specified key is mapped in this hashtable ... the key isn't necessarily interned, though. | |
| hasMoreElements | back to summary |
|---|---|
| public boolean hasMoreElements() Implements java. Used to view this as an enumeration; returns true if there are more keys to be enumerated.
| |
| keys | back to summary |
|---|---|
| public Enumeration Returns an enumeration of the keys in this hashtable.
| |
| nextElement | back to summary |
|---|---|
| public Object nextElement() Implements java. Used to view this as an enumeration; returns the next key in the enumeration.
| |
| put | back to summary |
|---|---|
| public Object put(Object key, Object value) Maps the specified The value can be retrieved by calling the | |
| rehash | back to summary |
|---|---|
| private void rehash() Increases the capacity of and internally reorganizes this hashtable, in order to accommodate and access its entries more efficiently. This method is called automatically when the number of keys in the hashtable exceeds this hashtable's capacity and load factor. | |
| size | back to summary |
|---|---|
| public int size() Returns the number of keys in this hashtable.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv int | |
| pack-priv Object | |
| pack-priv SimpleHashtable. | |
| pack-priv Object |
| Access | Constructor and Description |
|---|---|
| protected |
| hash | back to summary |
|---|---|
| pack-priv int hash | |
| key | back to summary |
|---|---|
| pack-priv Object key | |
| next | back to summary |
|---|---|
| pack-priv SimpleHashtable. | |
| value | back to summary |
|---|---|
| pack-priv Object value | |
| Entry | back to summary |
|---|---|
| protected Entry(int hash, Object key, Object value, SimpleHashtable. | |