public class MaskedIPSet extends HashSet<String>
Constructor and Description |
---|
MaskedIPSet() |
MaskedIPSet(int initialCapacity) |
MaskedIPSet(RouterContext ctx,
Hash peer,
int mask)
The Set of IPs for this peer, with a given mask.
|
MaskedIPSet(RouterContext ctx,
Hash peer,
RouterInfo pinfo,
int mask)
The Set of IPs for this peer, with a given mask.
|
MaskedIPSet(RouterContext ctx,
RouterInfo pinfo,
int mask)
The Set of IPs for this peer, with a given mask.
|
Modifier and Type | Method and Description |
---|---|
boolean |
containsAny(Set<String> b)
does this contain any of the elements in b?
|
add, clear, clone, contains, isEmpty, iterator, remove, size
equals, hashCode, removeAll
addAll, containsAll, retainAll, toArray, toArray, toString
public MaskedIPSet()
public MaskedIPSet(int initialCapacity)
public MaskedIPSet(RouterContext ctx, Hash peer, int mask)
peer
- non-nullmask
- is 1-4 (number of bytes to match)public MaskedIPSet(RouterContext ctx, RouterInfo pinfo, int mask)
pinfo
- may be nullmask
- is 1-4 (number of bytes to match)public MaskedIPSet(RouterContext ctx, Hash peer, RouterInfo pinfo, int mask)
pinfo
- may be nullmask
- is 1-4 (number of bytes to match)