Class SubnetUtils6

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      class  SubnetUtils6.SubnetInfo
      Contains IPv6 subnet summary information.
    • Constructor Summary

      Constructors 
      Constructor Description
      SubnetUtils6​(java.lang.String cidrNotation)
      Constructs an instance from a CIDR-notation string, e.g., "2001:db8::1/64".
      SubnetUtils6​(java.lang.String address, int prefixLength)
      Constructs an instance from an IPv6 address and prefix length.
    • Constructor Detail

      • SubnetUtils6

        public SubnetUtils6​(java.lang.String cidrNotation)
        Constructs an instance from a CIDR-notation string, e.g., "2001:db8::1/64".
        Parameters:
        cidrNotation - a CIDR-notation string, e.g., "2001:db8::1/64".
        Throws:
        java.lang.IllegalArgumentException - if the parameter is invalid.
      • SubnetUtils6

        public SubnetUtils6​(java.lang.String address,
                            int prefixLength)
        Constructs an instance from an IPv6 address and prefix length.
        Parameters:
        address - an IPv6 address, e.g., "2001:db8::1".
        prefixLength - the prefix length (0-128).
        Throws:
        java.lang.IllegalArgumentException - if the parameters are invalid.