Class InetAddressRange.Builder

  • Enclosing class:
    InetAddressRange

    private static final class InetAddressRange.Builder
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Builder()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) static byte[] and​(byte[] a, byte[] b)  
      (package private) static InetAddressRange build​(java.lang.String cidr)  
      private static byte byteRange​(int x)  
      (package private) static void computeMask​(byte[] mask, int bits)  
      private static InetAddressRange fromIp4​(java.util.regex.Matcher m)  
      private static InetAddressRange fromIp6​(java.util.regex.Matcher m)  
      (package private) static byte[] invertedOr​(byte[] a, byte[] b)  
      private static void rangeCheck​(int x, int min, int max)  
      private static int wordRange​(int x)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Builder

        private Builder()
    • Method Detail

      • fromIp4

        private static InetAddressRange fromIp4​(java.util.regex.Matcher m)
      • fromIp6

        private static InetAddressRange fromIp6​(java.util.regex.Matcher m)
      • byteRange

        private static byte byteRange​(int x)
      • wordRange

        private static int wordRange​(int x)
      • rangeCheck

        private static void rangeCheck​(int x,
                                       int min,
                                       int max)
      • computeMask

        static void computeMask​(byte[] mask,
                                int bits)
      • and

        static byte[] and​(byte[] a,
                          byte[] b)
      • invertedOr

        static byte[] invertedOr​(byte[] a,
                                 byte[] b)