test_class.file: ml/streaminer/src/test/java/org/streaminer/util/hash/Lookup3HashTest.java
test_class.identifier: Lookup3HashTest
test_case.body: @Test
      public void testHash()
      {
          Random r = new Random(0);
          int[] utf32 = new int[20];
          tstEquiv(utf32, 0);
  
          utf32[0] = 0x10000;
          tstEquiv(utf32, 1);
          utf32[0] = 0x8000;
          tstEquiv(utf32, 1);
          utf32[0] = Character.MAX_CODE_POINT;
          tstEquiv(utf32, 1);
  
          for (int iter = 0; iter < 10000; iter++)
          {
              int len = r.nextInt(utf32.length + 1);
              for (int i = 0; i < len; i++)
              {
                  int codePoint;
                  do
                  {
                      codePoint = r.nextInt(Character.MAX_CODE_POINT + 1);
                  } while ((codePoint & 0xF800) == 0xD800);  // avoid surrogate code points
                  utf32[i] = codePoint;
              }
              // System.out.println("len="+len + ","+utf32[0]+","+utf32[1]);
              tstEquiv(utf32, len);
          }
      }
test_case.class_method_signature: Lookup3HashTest.testHash()
test_case.full_signature: @Test public void testHash()
test_case.identifier: testHash
test_case.invocations: tstEquiv tstEquiv tstEquiv tstEquiv nextInt nextInt tstEquiv
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testHash()
focal_class.file: ml/streaminer/src/main/java/org/streaminer/util/hash/Lookup3Hash.java
focal_class.identifier: Lookup3Hash
focal_class.class_method_signature: Lookup3Hash.lookup3(int[] k, int offset, int length, int initval)
focal_class.full_signature: @SuppressWarnings("fallthrough") public static int lookup3(int[] k, int offset, int length, int initval)
focal_class.identifier: lookup3
focal_class.modifiers: @SuppressWarnings("fallthrough") public static
focal_class.parameters: (int[] k, int offset, int length, int initval)
focal_class.return: int
focal_class.signature: int lookup3(int[] k, int offset, int length, int initval)
focal_class.class_method_signature: Lookup3Hash.lookup3ycs(int[] k, int offset, int length, int initval)
focal_class.full_signature: public static int lookup3ycs(int[] k, int offset, int length, int initval)
focal_class.identifier: lookup3ycs
focal_class.modifiers: public static
focal_class.parameters: (int[] k, int offset, int length, int initval)
focal_class.return: int
focal_class.signature: int lookup3ycs(int[] k, int offset, int length, int initval)
focal_class.class_method_signature: Lookup3Hash.lookup3ycs(CharSequence s, int start, int end, int initval)
focal_class.full_signature: public static int lookup3ycs(CharSequence s, int start, int end, int initval)
focal_class.identifier: lookup3ycs
focal_class.modifiers: public static
focal_class.parameters: (CharSequence s, int start, int end, int initval)
focal_class.return: int
focal_class.signature: int lookup3ycs(CharSequence s, int start, int end, int initval)
focal_class.class_method_signature: Lookup3Hash.lookup3ycs64(CharSequence s, int start, int end, long initval)
focal_class.full_signature: public static long lookup3ycs64(CharSequence s, int start, int end, long initval)
focal_class.identifier: lookup3ycs64
focal_class.modifiers: public static
focal_class.parameters: (CharSequence s, int start, int end, long initval)
focal_class.return: long
focal_class.signature: long lookup3ycs64(CharSequence s, int start, int end, long initval)
focal_class.class_method_signature: Lookup3Hash.lookup3ycs64(CharSequence s)
focal_class.full_signature: public static long lookup3ycs64(CharSequence s)
focal_class.identifier: lookup3ycs64
focal_class.modifiers: public static
focal_class.parameters: (CharSequence s)
focal_class.return: long
focal_class.signature: long lookup3ycs64(CharSequence s)
focal_class.class_method_signature: Lookup3Hash.hash(byte[] bytes, int length, int seed)
focal_class.full_signature: @Override public int hash(byte[] bytes, int length, int seed)
focal_class.identifier: hash
focal_class.modifiers: @Override public
focal_class.parameters: (byte[] bytes, int length, int seed)
focal_class.return: int
focal_class.signature: int hash(byte[] bytes, int length, int seed)
focal_class.class_method_signature: Lookup3Hash.hash64(byte[] bytes, int length, int seed)
focal_class.full_signature: @Override public long hash64(byte[] bytes, int length, int seed)
focal_class.identifier: hash64
focal_class.modifiers: @Override public
focal_class.parameters: (byte[] bytes, int length, int seed)
focal_class.return: long
focal_class.signature: long hash64(byte[] bytes, int length, int seed)
focal_class.class_method_signature: Lookup3Hash.hash(Object o)
focal_class.full_signature: @Override public int hash(Object o)
focal_class.identifier: hash
focal_class.modifiers: @Override public
focal_class.parameters: (Object o)
focal_class.return: int
focal_class.signature: int hash(Object o)
focal_class.class_method_signature: Lookup3Hash.hash64(Object o)
focal_class.full_signature: @Override public long hash64(Object o)
focal_class.identifier: hash64
focal_class.modifiers: @Override public
focal_class.parameters: (Object o)
focal_class.return: long
focal_class.signature: long hash64(Object o)
focal_class.superclass: extends Hash
focal_method.body: @Override
      public int hash(byte[] bytes, int length, int seed) {
          throw new UnsupportedOperationException("Not supported yet.");
      }
focal_method.class_method_signature: Lookup3Hash.hash(byte[] bytes, int length, int seed)
focal_method.full_signature: @Override public int hash(byte[] bytes, int length, int seed)
focal_method.identifier: hash
focal_method.modifiers: @Override public
focal_method.parameters: (byte[] bytes, int length, int seed)
focal_method.return: int
focal_method.signature: int hash(byte[] bytes, int length, int seed)