Module inet.ipaddr

Class IPAddressJoinedSegments

    • Constructor Detail

      • IPAddressJoinedSegments

        public IPAddressJoinedSegments​(int joinedCount,
                                       int value)
      • IPAddressJoinedSegments

        public IPAddressJoinedSegments​(int joinedCount,
                                       long value,
                                       java.lang.Integer segmentPrefixLength)
      • IPAddressJoinedSegments

        public IPAddressJoinedSegments​(int joinedCount,
                                       long lower,
                                       long upper,
                                       java.lang.Integer segmentPrefixLength)
    • Method Detail

      • getJoinedCount

        public int getJoinedCount()
      • getBitCount

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

        public int getMaxDigitCount()
      • 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