Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for setFile (0.18 sec)

  1. android/guava-tests/test/com/google/common/collect/ImmutableSetTest.java

      private void verifyTableSize(int inputSize, int setSize, int tableSize) {
        Builder<Integer> builder = ImmutableSet.builder();
        for (int i = 0; i < inputSize; i++) {
          builder.add(i % setSize);
        }
        ImmutableSet<Integer> set = builder.build();
        assertTrue(set instanceof RegularImmutableSet);
        assertEquals(
            "Input size " + inputSize + " and set size " + setSize,
            tableSize,
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 13.7K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/io/SourceSinkFactories.java

        protected File createFile() throws IOException {
          File file = File.createTempFile("SinkSourceFile", "txt");
          fileThreadLocal.set(file);
          return file;
        }
    
        protected File getFile() {
          return fileThreadLocal.get();
        }
    
        public final void tearDown() throws IOException {
          if (!fileThreadLocal.get().delete()) {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Sep 09 17:57:59 GMT 2021
    - 17.9K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/ImmutableSet.java

       * can hold setSize elements with the desired load factor. Always returns at least setSize + 2.
       */
      // TODO(cpovirk): Move to Hashing or something, since it's used elsewhere in the Android version.
      static int chooseTableSize(int setSize) {
        setSize = Math.max(setSize, 2);
        // Correct the size for open addressing to match desired load factor.
        if (setSize < CUTOFF) {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 35.4K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/ImmutableSetTest.java

      private void verifyTableSize(int inputSize, int setSize, int tableSize) {
        Builder<Integer> builder = ImmutableSet.builder();
        for (int i = 0; i < inputSize; i++) {
          builder.add(i % setSize);
        }
        ImmutableSet<Integer> set = builder.build();
        assertTrue(set instanceof RegularImmutableSet);
        assertEquals(
            "Input size " + inputSize + " and set size " + setSize,
            tableSize,
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 13.9K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/ListsTest.java

        }
        list.remove(0);
        assertEquals(asList("2", "3", "4"), list);
        list.remove("3");
        assertEquals(asList("2", "4"), list);
        try {
          list.set(0, "5");
          fail("transformed list is setable");
        } catch (UnsupportedOperationException expected) {
        }
        list.clear();
        assertEquals(Collections.emptyList(), list);
      }
    
      public void testTransformViewRandomAccess() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 35.2K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/io/MoreFilesTest.java

          NoSuchFileException expected =
              assertThrows(
                  NoSuchFileException.class,
                  () -> MoreFiles.deleteRecursively(fs.getPath("/work/nothere"), ALLOW_INSECURE));
          assertThat(expected.getFile()).isEqualTo("/work/nothere");
        }
      }
    
      public void testDeleteDirectoryContents_symlinkToDir_sdsNotSupported_allowInsecure()
          throws IOException {
        try (FileSystem fs = newTestFileSystem()) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Jan 29 22:57:05 GMT 2024
    - 27.2K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/base/FunctionsTest.java

        Function<Float, Boolean> c2 = Functions.compose(h, Functions.compose(g, f));
    
        // Might be nice (eventually) to have:
        //     assertEquals(c1, c2);
    
        // But for now, settle for this:
        assertEquals(c1.hashCode(), c2.hashCode());
    
        assertEquals(c1.apply(1.0f), c2.apply(1.0f));
        assertEquals(c1.apply(5.0f), c2.apply(5.0f));
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 16K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/base/FunctionsTest.java

        Function<Float, Boolean> c2 = Functions.compose(h, Functions.compose(g, f));
    
        // Might be nice (eventually) to have:
        //     assertEquals(c1, c2);
    
        // But for now, settle for this:
        assertEquals(c1.hashCode(), c2.hashCode());
    
        assertEquals(c1.apply(1.0f), c2.apply(1.0f));
        assertEquals(c1.apply(5.0f), c2.apply(5.0f));
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 16K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/reflect/ClassPathTest.java

            ClassPath.getClassPathEntry(new File("/home/build/outer.jar"), "x/y/z.jar").toURI());
        assertEquals(
            "/home/build/x y.jar",
            ClassPath.getClassPathEntry(new File("/home/build/outer.jar"), "x y.jar").getFile());
      }
    
      public void testGetClassPathFromManifest_nullManifest() {
        assertThat(ClassPath.getClassPathFromManifest(new File("some.jar"), null)).isEmpty();
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Apr 26 14:02:27 GMT 2024
    - 24.9K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/reflect/ClassPath.java

        public final String getResourceName() {
          return resourceName;
        }
    
        /** Returns the file that includes this resource. */
        final File getFile() {
          return file;
        }
    
        @Override
        public int hashCode() {
          return resourceName.hashCode();
        }
    
        @Override
        public boolean equals(@CheckForNull Object obj) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Jan 05 17:43:40 GMT 2022
    - 24.9K bytes
    - Viewed (1)
Back to top