TYPE
- the Map Entry value typepublic class IPAddressMap<TYPE>
extends java.util.HashMap<java.lang.String,TYPE>
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
Constructor | Description |
---|---|
IPAddressMap() |
Deprecated.
Construct empty IPAddressMap.
|
IPAddressMap(int capacity) |
Deprecated.
Construct empty IPAddressMap.
|
Modifier and Type | Method | Description |
---|---|---|
TYPE |
get(java.lang.Object key) |
Deprecated.
Retrieve the object mapped to the specified internet address literal
|
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.
|
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
|
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, getOrDefault, isEmpty, keySet, merge, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
public IPAddressMap()
public IPAddressMap(int capacity)
capacity
- initial capacitypublic TYPE put(java.lang.String addrSpec, TYPE object) throws java.lang.IllegalArgumentException
put
in class java.util.HashMap<java.lang.String,TYPE>
java.lang.IllegalArgumentException
HashMap.put(java.lang.Object, java.lang.Object)
public TYPE get(java.lang.Object key)
get
in class java.util.HashMap<java.lang.String,TYPE>
HashMap.get(java.lang.Object)
public TYPE match(java.lang.String addr)
addr
- internet addresspublic java.util.Map.Entry<java.lang.String,TYPE> getMatch(java.lang.String addr)
addr
- internet addresspublic java.lang.Object getLazyMatches(java.lang.String addr)
addr
- internet addressCopyright © 1995–2018 Webtide. All rights reserved.