public interface NetworkRange extends Serializable
Modifier and Type | Method and Description |
---|---|
void |
addIP(String iP)
Adds a single IP address to the range defined by this object.
|
void |
addIPRange(String startIP,
String endIP)
Add an IP range to the range defined by this object.
|
NetworkRange |
withIP(String iP)
Add a single IP address to the range defined by this object.
|
NetworkRange |
withIPRange(String startIP,
String endIP)
Add an IP range to the range defined by this object.
|
void addIP(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(String startIP, 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(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(String startIP, 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. Documentation Feedback
Copyright 2011 - 2018 Micro Focus or one of its affiliates.