IPRange Class

  • java.lang.Object
    • com.microsoft.azure.storage.IPRange

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:

ip - the single IP address

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:

mininimumIP - the minimum IP address of the range
maximumIP - the maximum IP address of the range

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:

The maximum IP address

getIpMin

public String getIpMin()

The minimum IP address for the range, inclusive. Will match getIpMax() if this represents a single IP address.

Returns:

The minimum IP address

toString

public String toString()

Output the single IP address or range of IP addresses.

Returns:

the single IP address or range of IP addresses formated as a String

Applies to