private class IpList.IpRange
extends Object
Modifier and Type | Field and Description |
---|---|
IpList.IpAddr |
endAddr
End of the range (can be equal to startAddr)
|
boolean |
isPositive
true if the range is specified IP address to include, false if
it specifies addresses to exclude.
|
IpList.IpAddr |
startAddr
Start of the range
|
Constructor and Description |
---|
IpRange(IpList.IpAddr _start,
IpList.IpAddr _end,
boolean _isPos)
Construct an IP range.
|
Modifier and Type | Method and Description |
---|---|
(package private) boolean |
matches(IpList.IpAddr addr)
Checks if a specified IP address falls within the range.
|
public IpList.IpAddr startAddr
public IpList.IpAddr endAddr
public boolean isPositive
IpRange(IpList.IpAddr _start, IpList.IpAddr _end, boolean _isPos)
_start
- Starting address_end
- Ending address (can equal _start)_isPos
- true if range specified IPs to include, false to
specify IPs to exclude.boolean matches(IpList.IpAddr addr)