Package org.eclipse.jetty.util
Class IPAddressMap<TYPE>
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<java.lang.String,TYPE>
-
- org.eclipse.jetty.util.IPAddressMap<TYPE>
-
- Type Parameters:
TYPE
- the Map Entry value type
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,java.util.Map<java.lang.String,TYPE>
@Deprecated(since="2021-05-27") public class IPAddressMap<TYPE> extends java.util.HashMap<java.lang.String,TYPE>
Deprecated.Internet address map to objectInternet 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
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description IPAddressMap()
Deprecated.Construct empty IPAddressMap.IPAddressMap(int capacity)
Deprecated.Construct empty IPAddressMap.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description TYPE
get(java.lang.Object key)
Deprecated.Retrieve the object mapped to the specified internet address literaljava.lang.Object
getLazyMatches(java.lang.String addr)
Deprecated.Retrieve a lazy list of map entries associated with specified internet address by taking into account the wildcard specifications.java.util.Map.Entry<java.lang.String,TYPE>
getMatch(java.lang.String addr)
Deprecated.Retrieve the first map entry that is associated with the specified internet address by taking into account the wildcard specifications.TYPE
match(java.lang.String addr)
Deprecated.Retrieve the first object that is associated with the specified internet address by taking into account the wildcard specifications.TYPE
put(java.lang.String addrSpec, TYPE object)
Deprecated.Insert a new internet address into map
-
-
-
Method Detail
-
put
public TYPE put(java.lang.String addrSpec, TYPE object) throws java.lang.IllegalArgumentException
Deprecated.Insert a new internet address into map
-
get
public TYPE get(java.lang.Object key)
Deprecated.Retrieve the object mapped to the specified internet address literal
-
match
public TYPE match(java.lang.String addr)
Deprecated.Retrieve the first object that is associated with the specified internet address by taking into account the wildcard specifications.- Parameters:
addr
- internet address- Returns:
- associated object
-
getMatch
public java.util.Map.Entry<java.lang.String,TYPE> getMatch(java.lang.String addr)
Deprecated.Retrieve the first map entry that is associated with the specified internet address by taking into account the wildcard specifications.- Parameters:
addr
- internet address- Returns:
- map entry associated
-
getLazyMatches
public java.lang.Object getLazyMatches(java.lang.String addr)
Deprecated.Retrieve a lazy list of map entries associated with specified internet address by taking into account the wildcard specifications.- Parameters:
addr
- internet address- Returns:
- lazy list of map entries
-
-