|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectjava.util.AbstractMap
org.eclipse.jetty.util.StringMap
public class StringMap
Map implementation Optimized for Strings keys.. This String Map has been optimized for mapping small sets of Strings where the most frequently accessed Strings have been put to the map first. It also has the benefit that it can look up entries by substring or sections of char and byte arrays. This can prevent many String objects from being created just to look up in the map. This map is NOT synchronized.
| 嵌套类摘要 |
|---|
| 从类 java.util.AbstractMap 继承的嵌套类/接口 |
|---|
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V> |
| 从接口 java.util.Map 继承的嵌套类/接口 |
|---|
Map.Entry<K,V> |
| 字段摘要 | |
|---|---|
protected static int |
__HASH_WIDTH
|
protected HashSet |
_entrySet
|
protected boolean |
_ignoreCase
|
protected org.eclipse.jetty.util.StringMap.NullEntry |
_nullEntry
|
protected Object |
_nullValue
|
protected org.eclipse.jetty.util.StringMap.Node |
_root
|
protected Set |
_umEntrySet
|
protected int |
_width
|
static boolean |
CASE_INSENSTIVE
|
| 构造方法摘要 | |
|---|---|
StringMap()
Constructor. |
|
StringMap(boolean ignoreCase)
Constructor. |
|
StringMap(boolean ignoreCase,
int width)
Constructor. |
|
| 方法摘要 | |
|---|---|
void |
clear()
|
boolean |
containsKey(Object key)
|
Set |
entrySet()
|
Object |
get(Object key)
|
Object |
get(String key)
|
Map.Entry |
getBestEntry(byte[] key,
int offset,
int maxLength)
Get a map entry by byte array key, using as much of the passed key as needed for a match. |
Map.Entry |
getEntry(char[] key,
int offset,
int length)
Get a map entry by char array key. |
Map.Entry |
getEntry(String key,
int offset,
int length)
Get a map entry by substring key. |
int |
getWidth()
|
boolean |
isEmpty()
|
boolean |
isIgnoreCase()
|
Object |
put(Object key,
Object value)
|
Object |
put(String key,
Object value)
|
void |
readExternal(ObjectInput in)
|
Object |
remove(Object key)
|
Object |
remove(String key)
|
void |
setIgnoreCase(boolean ic)
Set the ignoreCase attribute. |
void |
setWidth(int width)
Set the hash width. |
int |
size()
|
void |
writeExternal(ObjectOutput out)
|
| 从类 java.util.AbstractMap 继承的方法 |
|---|
clone, containsValue, equals, hashCode, keySet, putAll, toString, values |
| 从类 java.lang.Object 继承的方法 |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| 字段详细信息 |
|---|
public static final boolean CASE_INSENSTIVE
protected static final int __HASH_WIDTH
protected int _width
protected org.eclipse.jetty.util.StringMap.Node _root
protected boolean _ignoreCase
protected org.eclipse.jetty.util.StringMap.NullEntry _nullEntry
protected Object _nullValue
protected HashSet _entrySet
protected Set _umEntrySet
| 构造方法详细信息 |
|---|
public StringMap()
public StringMap(boolean ignoreCase)
ignoreCase -
public StringMap(boolean ignoreCase,
int width)
ignoreCase - width - Width of hash tables, larger values are faster but
use more memory.| 方法详细信息 |
|---|
public void setIgnoreCase(boolean ic)
ic - If true, the map is case insensitive for keys.public boolean isIgnoreCase()
public void setWidth(int width)
width - Width of hash tables, larger values are faster but
use more memory.public int getWidth()
public Object put(Object key,
Object value)
Map 中的 putAbstractMap 中的 put
public Object put(String key,
Object value)
public Object get(Object key)
Map 中的 getAbstractMap 中的 getpublic Object get(String key)
public Map.Entry getEntry(String key,
int offset,
int length)
key - String containing the keyoffset - Offset of the key within the String.length - The length of the key
public Map.Entry getEntry(char[] key,
int offset,
int length)
key - char array containing the keyoffset - Offset of the key within the array.length - The length of the key
public Map.Entry getBestEntry(byte[] key,
int offset,
int maxLength)
key - char array containing the keyoffset - Offset of the key within the array.maxLength - The length of the key
public Object remove(Object key)
Map 中的 removeAbstractMap 中的 removepublic Object remove(String key)
public Set entrySet()
Map 中的 entrySetAbstractMap 中的 entrySetpublic int size()
Map 中的 sizeAbstractMap 中的 sizepublic boolean isEmpty()
Map 中的 isEmptyAbstractMap 中的 isEmptypublic boolean containsKey(Object key)
Map 中的 containsKeyAbstractMap 中的 containsKeypublic void clear()
Map 中的 clearAbstractMap 中的 clear
public void writeExternal(ObjectOutput out)
throws IOException
Externalizable 中的 writeExternalIOException
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
Externalizable 中的 readExternalIOException
ClassNotFoundException
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||