Package org.eclipse.jetty.util
Class IPAddressMap<TYPE>
- Type Parameters:
TYPE
- the Map Entry value type
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<String,
TYPE>
Deprecated.
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
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static class
Deprecated.IPAddrPattern Represents internet address wildcard.private static class
Deprecated.OctetPattern Represents a single octet wildcard.Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,
V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final HashMap<String,
IPAddressMap.IPAddrPattern> Deprecated. -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Construct empty IPAddressMap.IPAddressMap
(int capacity) Deprecated.Construct empty IPAddressMap. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Retrieve the object mapped to the specified internet address literalgetLazyMatches
(String addr) Deprecated.Retrieve a lazy list of map entries associated with specified internet address by taking into account the wildcard specifications.Deprecated.Retrieve the first map entry that is associated with the specified internet address by taking into account the wildcard specifications.Deprecated.Retrieve the first object that is associated with the specified internet address by taking into account the wildcard specifications.Deprecated.Insert a new internet address into mapMethods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, getOrDefault, isEmpty, keySet, merge, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Field Details
-
_patterns
Deprecated.
-
-
Constructor Details
-
IPAddressMap
public IPAddressMap()Deprecated.Construct empty IPAddressMap. -
IPAddressMap
public IPAddressMap(int capacity) Deprecated.Construct empty IPAddressMap.- Parameters:
capacity
- initial capacity
-
-
Method Details
-
put
Deprecated.Insert a new internet address into map -
get
Deprecated.Retrieve the object mapped to the specified internet address literal -
match
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
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
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
-