Module inet.ipaddr

Class AddressDivisionGrouping

    • Constructor Detail

      • AddressDivisionGrouping

        public AddressDivisionGrouping​(AddressDivision[] divisions)
      • AddressDivisionGrouping

        public AddressDivisionGrouping​(AddressDivision[] divisions,
                                       boolean checkDivisions)
    • Method Detail

      • containsPrefixBlock

        public boolean containsPrefixBlock​(int prefixLength)
        Returns whether the values of this division grouping contain the prefix block for the given prefix length
        Parameters:
        prefixLength -
        Returns:
      • containsSinglePrefixBlock

        public boolean containsSinglePrefixBlock​(int prefixLength)
        Returns whether the values of this division grouping match the prefix block for the given prefix length
        Parameters:
        prefixLength -
        Returns:
      • equals

        public boolean equals​(java.lang.Object o)
        Description copied from class: AddressDivisionGroupingBase
        Two groupings are equal if: - they match type/version (ipv4, ipv6, mac, or a specific grouping class) - they match division counts - each division matches bit counts - each division matches their specific grouping class - each division matches values Prefix lengths, for those groupings and/or divisionsS that have them, are ignored.
        Overrides:
        equals in class AddressDivisionGroupingBase