org.eclipse.jetty.util
类 HostMap<TYPE>

java.lang.Object
  继承者 java.util.AbstractMap<K,V>
      继承者 java.util.HashMap<String,TYPE>
          继承者 org.eclipse.jetty.util.HostMap<TYPE>
所有已实现的接口:
Serializable, Cloneable, Map<String,TYPE>

public class HostMap<TYPE>
extends HashMap<String,TYPE>

另请参见:
序列化表格

嵌套类摘要
 
从类 java.util.AbstractMap 继承的嵌套类/接口
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
构造方法摘要
HostMap()
          Construct empty HostMap.
HostMap(int capacity)
          Construct empty HostMap.
 
方法摘要
 TYPE get(Object key)
           
 Object getLazyMatches(String host)
          Retrieve a lazy list of map entries associated with specified hostname by taking into account the domain suffix matches.
 TYPE put(String host, TYPE object)
           
 
从类 java.util.HashMap 继承的方法
clear, clone, containsKey, containsValue, entrySet, isEmpty, keySet, putAll, remove, size, values
 
从类 java.util.AbstractMap 继承的方法
equals, hashCode, toString
 
从类 java.lang.Object 继承的方法
finalize, getClass, notify, notifyAll, wait, wait, wait
 
从接口 java.util.Map 继承的方法
equals, hashCode
 

构造方法详细信息

HostMap

public HostMap()
Construct empty HostMap.


HostMap

public HostMap(int capacity)
Construct empty HostMap.

参数:
capacity - initial capacity
方法详细信息

put

public TYPE put(String host,
                TYPE object)
         throws IllegalArgumentException
指定者:
接口 Map<String,TYPE> 中的 put
覆盖:
HashMap<String,TYPE> 中的 put
抛出:
IllegalArgumentException
另请参见:
HashMap.put(java.lang.Object, java.lang.Object)

get

public TYPE get(Object key)
指定者:
接口 Map<String,TYPE> 中的 get
覆盖:
HashMap<String,TYPE> 中的 get
另请参见:
HashMap.get(java.lang.Object)

getLazyMatches

public Object getLazyMatches(String host)
Retrieve a lazy list of map entries associated with specified hostname by taking into account the domain suffix matches.

参数:
host - hostname
返回:
lazy list of map entries


Copyright © 2013. All Rights Reserved.