public class IpAddressRangeSet2<R>
extends java.lang.Object
Constructor and Description |
---|
IpAddressRangeSet2(java.lang.Class<R> clazz,
ru.bitel.common.util.Ranger<R,byte[]> ranger,
boolean bites,
int maskLength) |
Modifier and Type | Method and Description |
---|---|
void |
add(R range) |
void |
addAll(java.lang.Iterable<R> list) |
boolean |
contains(byte[] address) |
boolean |
contains(byte[] address,
ru.bitel.common.util.Matcher<R> matcher) |
R |
get(IpAddress segmentKey,
byte[] address) |
R |
get(IpAddress segmentKey,
byte[] address,
ru.bitel.common.util.Matcher<R> matcher) |
static <K extends IpRange> |
newInstance(java.lang.Class<K> clazz,
int maskLength) |
void |
remove(R range) |
void |
removeAll(java.lang.Iterable<R> list) |
protected byte[] |
segmentKey(byte[] address) |
protected IpAddress |
segmentKey(R range) |
public static <K extends IpRange> IpAddressRangeSet2<K> newInstance(java.lang.Class<K> clazz, int maskLength)
protected byte[] segmentKey(byte[] address)
public void addAll(java.lang.Iterable<R> list)
public void removeAll(java.lang.Iterable<R> list)
public void add(R range)
public void remove(R range)
public boolean contains(byte[] address)
public boolean contains(byte[] address, ru.bitel.common.util.Matcher<R> matcher)