Module inet.ipaddr

Class IPAddressBitsDivision

    • Constructor Detail

      • IPAddressBitsDivision

        public IPAddressBitsDivision​(long value,
                                     long upperValue,
                                     int bitCount,
                                     int defaultRadix)
        Constructs a division with the given values, the given number of bits, and the given radix for printing the values.
        Parameters:
        value -
        upperValue -
        bitCount -
        defaultRadix -
      • IPAddressBitsDivision

        public IPAddressBitsDivision​(long value,
                                     long upperValue,
                                     int bitCount,
                                     int defaultRadix,
                                     java.lang.Integer networkPrefixLength)
        Constructs a division with the given values and prefix length, the given number of bits, and the given radix for printing the values.
        Parameters:
        value -
        upperValue -
        bitCount -
        defaultRadix -
        networkPrefixLength -
      • IPAddressBitsDivision

        public IPAddressBitsDivision​(long value,
                                     long upperValue,
                                     int bitCount,
                                     int defaultRadix,
                                     IPAddressNetwork<?,​?,​?,​?,​?> network,
                                     java.lang.Integer networkPrefixLength)
        Constructs a division with the given values and prefix length, the given number of bits, and the given radix for printing the values.
        Parameters:
        value -
        upperValue -
        bitCount -
        defaultRadix -
        network -
        networkPrefixLength -
    • Method Detail

      • getBitCount

        public int getBitCount()
        Description copied from interface: AddressItem
        Provides the number of bits comprising this address item
        Returns:
        the number of bits
      • equals

        public boolean equals​(java.lang.Object other)
        Description copied from class: AddressDivisionBase
        Two divisions are equal if they: - they match type/version (ipv4, ipv6, mac, or a specific division class) - match bit counts - match values Prefix lengths, for those divisions that have them, are ignored.
        Overrides:
        equals in class AddressDivision
      • getDefaultTextualRadix

        public int getDefaultTextualRadix()
      • getMaxDigitCount

        public int getMaxDigitCount()