Module inet.ipaddr

Class AddressBitsDivision

All Implemented Interfaces:
AddressGenericDivision, AddressItem, AddressStringDivision, Serializable, Comparable<AddressItem>

public class AddressBitsDivision extends AddressDivision
An address division for mac
Author:
sfoley
See Also:
  • Constructor Details

    • AddressBitsDivision

      public AddressBitsDivision(int value, int bitCount, int defaultRadix)
    • AddressBitsDivision

      public AddressBitsDivision(int lower, int upper, int bitCount, int defaultRadix)
  • Method Details

    • getDivisionValue

      public long getDivisionValue()
      Specified by:
      getDivisionValue in class AddressDivision
    • getUpperDivisionValue

      public long getUpperDivisionValue()
      Specified by:
      getUpperDivisionValue in class AddressDivision
    • 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(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
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class AddressDivision
    • getDefaultTextualRadix

      public int getDefaultTextualRadix()