Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for BinarySearch (0.15 sec)

  1. src/test/java/jcifs/tests/NamingTest.java

            ByteBuffer buf = ByteBuffer.allocate(128);
            Arrays.sort(excludes);
            for ( int i = 128; i < 255; i++ ) {
                int idx = Arrays.binarySearch(excludes, i);
                if ( idx < 0 || excludes[ idx ] == i ) {
                    continue;
                }
    
                if ( i == 240 ) {
                    continue;
                }
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sat Jun 06 10:48:05 GMT 2020
    - 7K bytes
    - Viewed (0)
  2. src/test/java/jcifs/tests/EnumTest.java

                    }
    
                    String[] found = f.list();
                    Arrays.sort(found);
    
                    for ( int i = 0; i < n; i++ ) {
                        Assert.assertTrue(Arrays.binarySearch(found, String.format("%s%d.tmp", prefix, i)) >= 0);
                    }
                }
                finally {
                    f.delete();
                }
            }
    
        }
    
    
        @Test
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Thu Jan 05 13:09:03 GMT 2023
    - 25.5K bytes
    - Viewed (0)
Back to top