inet.ipaddr.format

Interface IPAddressStringDivisionSeries

    • Method Detail

      • isPrefixed

        boolean isPrefixed()
        Whether these exists a prefix.
      • getPrefixLength

        java.lang.Integer getPrefixLength()
        The number of bits in the upper-most portion of the segment bits representing a prefix, while the remaining bits can assume all possible values. For an IP address returns the network prefix, which is 16 for an address like 1.2.0.0/16 If there is no prefix length, returns null.
        Returns:
        the prefix length or null if there is none