public class IPAddressStringDivisionGrouping extends AddressStringDivisionGrouping implements IPAddressStringDivisionSeries
Constructor and Description |
---|
IPAddressStringDivisionGrouping(IPAddressStringDivision[] divisions,
IPAddressNetwork<?,?,?,?,?> network,
java.lang.Integer prefixLength) |
Modifier and Type | Method and Description |
---|---|
IPAddressStringDivision |
getDivision(int index) |
IPAddressNetwork<?,?,?,?,?> |
getNetwork() |
java.lang.Integer |
getPrefixLength()
The number of bits in the upper-most portion of the segment bits representing a prefix, while the remaining bits can assume all possible values.
|
boolean |
isPrefixBlock()
Returns whether this address section represents a subnet block of addresses corresponding to the prefix of this series.
|
boolean |
isPrefixed()
Whether there exists a prefix length
|
getDivisionCount
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDivisionCount
public IPAddressStringDivisionGrouping(IPAddressStringDivision[] divisions, IPAddressNetwork<?,?,?,?,?> network, java.lang.Integer prefixLength)
public IPAddressNetwork<?,?,?,?,?> getNetwork()
getNetwork
in interface IPAddressStringDivisionSeries
public IPAddressStringDivision getDivision(int index)
getDivision
in interface AddressStringDivisionSeries
getDivision
in interface IPAddressStringDivisionSeries
getDivision
in class AddressStringDivisionGrouping
public boolean isPrefixed()
IPAddressStringDivisionSeries
isPrefixed
in interface IPAddressStringDivisionSeries
public java.lang.Integer getPrefixLength()
IPAddressStringDivisionSeries
getPrefixLength
in interface IPAddressStringDivisionSeries
public boolean isPrefixBlock()
IPAddressStringDivisionSeries
AddressNetwork.getPrefixConfiguration()
is set to consider all prefixes as subnets, this returns true for any section with a non-null prefix length.isPrefixBlock
in interface IPAddressStringDivisionSeries