| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private class |
| Modifier and Type | Field and Description |
|---|---|
| protected static final int | |
| protected HashSet | |
| protected boolean | |
| protected StringMap. | |
| protected Object | |
| protected StringMap. | |
| protected Set | |
| protected int | |
| public static final boolean |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | StringMap(boolean ignoreCase, int
Width of hash tables, larger values are faster but
use more memory. width)Constructor. |
| Modifier and Type | Method and Description |
|---|---|
| public void | clear()
Overrides java. Implements java. |
| public boolean | containsKey(Object
key whose presence in this map is to be tested key)Overrides java. Implements java. true if this map contains a mapping for the specified
key.
|
| public Set | entrySet()
Implements abstract java. Implements java. Set view of the mappings contained in this map.
|
| public Object | get(Object
the key whose associated value is to be returned key)Overrides java. Implements java. null if this map contains no mapping for the key.
|
| public Object | |
| public Map. | Returns: The Map.Entry for the key or null if the key is not in the map.char array containing the key key, int Offset of the key within the array. offset, int The length of the key maxLength)Get a map entry by byte array key, using as much of the passed key as needed for a match. |
| public Map. | |
| public Map. | Returns: The Map.Entry for the key or null if the key is not in the map.char array containing the key key, int Offset of the key within the array. offset, int The length of the key length)Get a map entry by char array key. |
| public int | |
| public boolean | isEmpty()
Overrides java. Implements java. true if this map contains no key-value mappings.
|
| public boolean | |
| public Object | put(Object
key with which the specified value is to be associated key, Object value to be associated with the specified key value)Overrides java. Implements java. |
| public Object | put(String
key with which the specified value is to be associated key, Object value to be associated with the specified key value)Overrides java. Implements java. |
| public void | readExternal(ObjectInput
the stream to read data from in order to restore the object in)Implements java. |
| public Object | remove(Object
key whose mapping is to be removed from the map key)Overrides java. Implements java. |
| public Object | |
| public void | setIgnoreCase(boolean
If true, the map is case insensitive for keys. ic)Set the ignoreCase attribute. |
| public void | setWidth(int
Width of hash tables, larger values are faster but
use more memory. width)Set the hash width. |
| public int | size()
Overrides java. Implements java. |
| public void | writeExternal(ObjectOutput
the stream to write the object to out)Implements java. |
| __HASH_WIDTH | back to summary |
|---|---|
| protected static final int __HASH_WIDTH | |
| _entrySet | back to summary |
|---|---|
| protected HashSet<E> _entrySet | |
| _ignoreCase | back to summary |
|---|---|
| protected boolean _ignoreCase | |
| _nullEntry | back to summary |
|---|---|
| protected StringMap. | |
| _nullValue | back to summary |
|---|---|
| protected Object _nullValue | |
| _root | back to summary |
|---|---|
| protected StringMap. | |
| _umEntrySet | back to summary |
|---|---|
| protected Set<E> _umEntrySet | |
| _width | back to summary |
|---|---|
| protected int _width | |
| CASE_INSENSTIVE | back to summary |
|---|---|
| public static final boolean CASE_INSENSTIVE | |
| StringMap | back to summary |
|---|---|
| public StringMap() Constructor. | |
| StringMap | back to summary |
|---|---|
| public StringMap(boolean ignoreCase) Constructor. | |
| StringMap | back to summary |
|---|---|
| public StringMap(boolean ignoreCase, int width) Constructor.
| |
| clear | back to summary |
|---|---|
| public void clear() Overrides java. Implements java. Doc from java. Removes all of the mappings from this map (optional operation). The map will be empty after this call returns. | |
| containsKey | back to summary |
|---|---|
| public boolean containsKey(Object key) Overrides java. Implements java. Doc from java. Returns
| |
| entrySet | back to summary |
|---|---|
| public Set Implements abstract java. Implements java. Doc from java. Returns a
| |
| get | back to summary |
|---|---|
| public Object get(Object key) Overrides java. Implements java. Doc from java. Returns the value to which the specified key is mapped,
or More formally, if this map contains a mapping from a key
If this map permits null values, then a return value of
| |
| get | back to summary |
|---|---|
| public Object get(String key) | |
| getBestEntry | back to summary |
|---|---|
| public Map. Get a map entry by byte array key, using as much of the passed key as needed for a match. A simple 8859-1 byte to char mapping is assumed. | |
| getEntry | back to summary |
|---|---|
| public Map. Get a map entry by substring key. | |
| getEntry | back to summary |
|---|---|
| public Map. Get a map entry by char array key. | |
| getWidth | back to summary |
|---|---|
| public int getWidth() | |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Overrides java. Implements java. Doc from java. Returns
| |
| isIgnoreCase | back to summary |
|---|---|
| public boolean isIgnoreCase() | |
| put | back to summary |
|---|---|
| public Object put(Object key, Object value) Overrides java. Implements java. Doc from java. Associates the specified value with the specified key in this map
(optional operation). If the map previously contained a mapping for
the key, the old value is replaced by the specified value. (A map
| |
| put | back to summary |
|---|---|
| public Object put(String key, Object value) Overrides java. Implements java. Doc from java. Associates the specified value with the specified key in this map
(optional operation). If the map previously contained a mapping for
the key, the old value is replaced by the specified value. (A map
| |
| readExternal | back to summary |
|---|---|
| public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException Implements java. Doc from java. The object implements the readExternal method to restore its contents by calling the methods of DataInput for primitive types and readObject for objects, strings and arrays. The readExternal method must read the values in the same sequence and with the same types as were written by writeExternal.
| |
| remove | back to summary |
|---|---|
| public Object remove(Object key) Overrides java. Implements java. Doc from java. Removes the mapping for a key from this map if it is present
(optional operation). More formally, if this map contains a mapping
from key Returns the value to which this map previously associated the key,
or If this map permits null values, then a return value of
The map will not contain a mapping for the specified key once the call returns.
| |
| remove | back to summary |
|---|---|
| public Object remove(String key) | |
| setIgnoreCase | back to summary |
|---|---|
| public void setIgnoreCase(boolean ic) Set the ignoreCase attribute.
| |
| setWidth | back to summary |
|---|---|
| public void setWidth(int width) Set the hash width.
| |
| size | back to summary |
|---|---|
| public int size() Overrides java. Implements java. Doc from java. Returns the number of key-value mappings in this map. If the
map contains more than
| |
| writeExternal | back to summary |
|---|---|
| public void writeExternal(ObjectOutput out) throws IOException Implements java. Doc from java. The object implements the writeExternal method to save its contents by calling the methods of DataOutput for its primitive values or calling the writeObject method of ObjectOutput for objects, strings, and arrays.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv char[] | |
| pack-priv StringMap. | |
| pack-priv String | |
| pack-priv StringMap. | |
| pack-priv char[] | |
| pack-priv Object |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Object | |
| public Object | |
| public Object | setValue(Object
new value to be stored in this entry o)Implements java. |
| pack-priv StringMap. | |
| public String | |
| private void |
| _char | back to summary |
|---|---|
| pack-priv char[] _char | |
| _children | back to summary |
|---|---|
| pack-priv StringMap. | |
| _key | back to summary |
|---|---|
| pack-priv String _key | |
| _next | back to summary |
|---|---|
| pack-priv StringMap. | |
| _ochar | back to summary |
|---|---|
| pack-priv char[] _ochar | |
| _value | back to summary |
|---|---|
| pack-priv Object _value | |
| Node | back to summary |
|---|---|
| pack-priv Node() | |
| Node | back to summary |
|---|---|
| pack-priv Node(boolean ignoreCase, String s, int offset) | |
| getKey | back to summary |
|---|---|
| public Object getKey() Implements java. Doc from java. Returns the key corresponding to this entry.
| |
| getValue | back to summary |
|---|---|
| public Object getValue() Implements java. Doc from java. Returns the value corresponding to this entry. If the mapping
has been removed from the backing map (by the iterator's
| |
| setValue | back to summary |
|---|---|
| public Object setValue(Object o) Implements java. Doc from java. Replaces the value corresponding to this entry with the specified
value (optional operation). (Writes through to the map.) The
behavior of this call is undefined if the mapping has already been
removed from the map (by the iterator's | |
| split | back to summary |
|---|---|
| pack-priv StringMap. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
| |
| toString | back to summary |
|---|---|
| private void toString(StringBuilder buf) | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public Object | |
| public Object | |
| public Object | setValue(Object
new value to be stored in this entry o)Implements java. |
| public String |
| NullEntry | back to summary |
|---|---|
| private NullEntry() | |
| getKey | back to summary |
|---|---|
| public Object getKey() Implements java. Doc from java. Returns the key corresponding to this entry.
| |
| getValue | back to summary |
|---|---|
| public Object getValue() Implements java. Doc from java. Returns the value corresponding to this entry. If the mapping
has been removed from the backing map (by the iterator's
| |
| setValue | back to summary |
|---|---|
| public Object setValue(Object o) Implements java. Doc from java. Replaces the value corresponding to this entry with the specified
value (optional operation). (Writes through to the map.) The
behavior of this call is undefined if the mapping has already been
removed from the map (by the iterator's | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
| |