inet.ipaddr.format

Class AddressLargeDivision

    • Field Detail

      • EXTENDED_DIGITS_RANGE_SEPARATOR

        public static final char EXTENDED_DIGITS_RANGE_SEPARATOR
        See Also:
        Constant Field Values
      • EXTENDED_DIGITS_RANGE_SEPARATOR_STR

        public static final java.lang.String EXTENDED_DIGITS_RANGE_SEPARATOR_STR
      • EXTENDED_DIGITS

        public static final char[] EXTENDED_DIGITS
    • Constructor Detail

      • AddressLargeDivision

        public AddressLargeDivision(byte[] bytes,
                                    byte[] upperBytes,
                                    int bitCount,
                                    int defaultRadix,
                                    java.lang.Integer networkPrefixLength)
      • AddressLargeDivision

        public AddressLargeDivision(byte[] bytes,
                                    int bitCount,
                                    int defaultRadix,
                                    java.lang.Integer prefix)
    • Method Detail

      • isBoundedBy

        public boolean isBoundedBy(int val)
        Description copied from interface: AddressStringDivision
        Returns true if the possible values of this division fall below the given boundary value.
      • getDigitCount

        public int getDigitCount(int radix)
        Description copied from interface: AddressStringDivision
        Returns the count of digits of the value, or if a range, the larger value in the range
        Returns:
      • getCount

        public java.math.BigInteger getCount()
        Description copied from interface: AddressItem
        The count of possible distinct values for this AddressComponent. If not multiple, this is 1. For instance, if this is the ip address series subnet 0::/64, then the count is 2 to the power of 64. If this is a the segment 3-7, then the count is 5.
        Returns:
      • getBitCount

        public int getBitCount()
        Returns:
        the number of bits in this item
      • isMultiple

        public boolean isMultiple()
        Description copied from interface: AddressItem
        Whether this represents multiple potential values (eg a prefixed address or a segment representing a range of values)
      • isZero

        public boolean isZero()
        Returns:
        whether this item has the value of zero
      • isFullRange

        public boolean isFullRange()
        Returns:
        whether this address item represents all possible values attainable by an address item of this type.
      • getDefaultTextualRadix

        public int getDefaultTextualRadix()
        Specified by:
        getDefaultTextualRadix in class AddressDivisionBase
        Returns:
        the default radix for textual representations of addresses (10 for IPv4, 16 for IPv6)
      • getMaxDigitCount

        public int getMaxDigitCount()
        Specified by:
        getMaxDigitCount in class AddressDivisionBase
        Returns:
        the number of digits for the maximum possible value of the division when using the default radix
      • getMaxDigitCount

        public int getMaxDigitCount(int radix)
        Description copied from interface: AddressStringDivision
        Returns the count of digits of the largest possible value
        Returns: