Class CIDRBlock
java.lang.Object
org.deltava.util.CIDRBlock
- All Implemented Interfaces:
Serializable
A class that enables to get an IP range from CIDR specification. It supports both IPv4 and IPv6.
- See Also:
-
Constructor Details
-
CIDRBlock
Creates the CIDR block.- Parameters:
cidrAddr- the address in base/prefix format
-
CIDRBlock
Creates the CIDR block.- Parameters:
cidrAddr- the base addressprefixLength- the prefix length in bits
-
-
Method Details
-
isIPv6
public boolean isIPv6() -
getNetworkAddress
-
getBroadcastAddress
-
getPrefixLength
public int getPrefixLength() -
isInRange
-
hashCode
-
toString
-