IPRange Class
- java.
lang. Object - com.
microsoft. azure. storage. IPRange
- com.
public class IPRange
A continuous range of IP addresses.
Constructor Summary
Constructor | Description |
---|---|
IPRange(String ip) |
Creates an IP Range using the specified single IP address. The IP address must be IPv4. |
IPRange(String mininimumIP, String maximumIP) |
Creates an IP Range using the specified minimum and maximum IP addresses. The IP addresses must be IPv4. |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
getIpMax()
The maximum IP address for the range, inclusive. Will match getIpMin() if this represents a single IP address. |
String |
getIpMin()
The minimum IP address for the range, inclusive. Will match getIpMax() if this represents a single IP address. |
String |
toString()
Output the single IP address or range of IP addresses. |
Constructor Details
IPRange
public IPRange(String ip)
Creates an IP Range using the specified single IP address. The IP address must be IPv4.
Parameters:
IPRange
public IPRange(String mininimumIP, String maximumIP)
Creates an IP Range using the specified minimum and maximum IP addresses. The IP addresses must be IPv4.
Parameters:
Method Details
getIpMax
public String getIpMax()
The maximum IP address for the range, inclusive. Will match getIpMin() if this represents a single IP address.
Returns:
getIpMin
public String getIpMin()
The minimum IP address for the range, inclusive. Will match getIpMax() if this represents a single IP address.
Returns:
toString
public String toString()
Output the single IP address or range of IP addresses.
Returns:
String