|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NetworkRange
Represents a range of IP address of type IPv4.
Method Summary | |
---|---|
void |
addIP(java.lang.String iP)
Adds a single IP address to the range defined by this object. |
void |
addIPRange(java.lang.String startIP,
java.lang.String endIP)
Add an IP range to the range defined by this object. |
NetworkRange |
withIP(java.lang.String iP)
Add a single IP address to the range defined by this object. |
NetworkRange |
withIPRange(java.lang.String startIP,
java.lang.String endIP)
Add an IP range to the range defined by this object. |
Method Detail |
---|
void addIP(java.lang.String iP) throws IllegalNetworkRangeException
iP
- a valid IPv4 address ("x.x.x.x").
IllegalNetworkRangeException
- if the input IP is not of valid format.void addIPRange(java.lang.String startIP, java.lang.String endIP) throws IllegalNetworkRangeException
startIP
- the first IP of the range. A valid IPv4 address ("x.x.x.x").endIP
- the last IP of the range. A valid IPv4 address ("x.x.x.x").
IllegalNetworkRangeException
- if the input IPs are not of valid format
or if the startIP is higher than the endIP.NetworkRange withIP(java.lang.String iP) throws IllegalNetworkRangeException
iP
- a valid IPv4 address ("x.x.x.x").
IllegalNetworkRangeException
- if the input IP is not of valid format.NetworkRange withIPRange(java.lang.String startIP, java.lang.String endIP) throws IllegalNetworkRangeException
startIP
- the first IP of this range. A valid IPv4 address ("x.x.x.x").endIP
- the last IP of this range. A valid IPv4 address ("x.x.x.x").
IllegalNetworkRangeException
- if the input IPs are not of valid format
or if the startIP is higher than the endIP.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |