|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
ObjectIpList.IpRange
private class IpList.IpRange
Data structure to keep track of a range of IP addresses and whether they are "positive" or "negative". Provides a way to check if an IP address falls within the range.
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
IpList.IpRange(IpList.IpAddr _start,
IpList.IpAddr _end,
boolean _isPos)
Construct an IP range. |
|
| Method Summary | |
|---|---|
(package private) boolean |
matches(IpList.IpAddr addr)
Checks if a specified IP address falls within the range. |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public IpList.IpAddr startAddr
public IpList.IpAddr endAddr
public boolean isPositive
| Constructor Detail |
|---|
IpList.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.| Method Detail |
|---|
boolean matches(IpList.IpAddr addr)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||