|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectjava.util.AbstractMap<K,V>
java.util.HashMap<String,TYPE>
org.eclipse.jetty.util.IPAddressMap<TYPE>
public class IPAddressMap<TYPE>
Internet address map to object
Internet addresses may be specified as absolute address or as a combination of four octet wildcard specifications (a.b.c.d) that are defined as follows.
nnn - an absolute value (0-255)
mmm-nnn - an inclusive range of absolute values,
with following shorthand notations:
nnn- => nnn-255
-nnn => 0-nnn
- => 0-255
a,b,... - a list of wildcard specifications
| 嵌套类摘要 |
|---|
| 从类 java.util.AbstractMap 继承的嵌套类/接口 |
|---|
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V> |
| 构造方法摘要 | |
|---|---|
IPAddressMap()
Construct empty IPAddressMap. |
|
IPAddressMap(int capacity)
Construct empty IPAddressMap. |
|
| 方法摘要 | |
|---|---|
TYPE |
get(Object key)
Retrieve the object mapped to the specified internet address literal |
Object |
getLazyMatches(String addr)
Retrieve a lazy list of map entries associated with specified internet address by taking into account the wildcard specifications. |
Map.Entry<String,TYPE> |
getMatch(String addr)
Retrieve the first map entry that is associated with the specified internet address by taking into account the wildcard specifications. |
TYPE |
match(String addr)
Retrieve the first object that is associated with the specified internet address by taking into account the wildcard specifications. |
TYPE |
put(String addrSpec,
TYPE object)
Insert a new internet address into map |
| 从类 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 |
| 构造方法详细信息 |
|---|
public IPAddressMap()
public IPAddressMap(int capacity)
capacity - initial capacity| 方法详细信息 |
|---|
public TYPE put(String addrSpec,
TYPE object)
throws IllegalArgumentException
Map<String,TYPE> 中的 putHashMap<String,TYPE> 中的 putIllegalArgumentExceptionHashMap.put(java.lang.Object, java.lang.Object)public TYPE get(Object key)
Map<String,TYPE> 中的 getHashMap<String,TYPE> 中的 getHashMap.get(java.lang.Object)public TYPE match(String addr)
addr - internet address
public Map.Entry<String,TYPE> getMatch(String addr)
addr - internet address
public Object getLazyMatches(String addr)
addr - internet address
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||