Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 62 for Delete (0.32 sec)

  1. guava/src/com/google/common/collect/JdkBackedImmutableMap.java

            K key = entry.getKey();
            if (duplicates.containsKey(key)) {
              V value = duplicates.get(key);
              if (value == null) {
                continue; // delete this duplicate
              }
              entry = new ImmutableMapEntry<>(key, value);
              duplicates.put(key, null);
            }
            newEntryArray[outI++] = entry;
          }
          entryArray = newEntryArray;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/io/SourceSinkFactories.java

        }
    
        protected File getFile() {
          return fileThreadLocal.get();
        }
    
        public final void tearDown() throws IOException {
          if (!fileThreadLocal.get().delete()) {
            logger.warning("Unable to delete file: " + fileThreadLocal.get());
          }
          fileThreadLocal.remove();
        }
      }
    
      private static class FileByteSourceFactory extends FileFactory implements ByteSourceFactory {
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Apr 06 12:56:11 UTC 2023
    - 12.7K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/io/FilesTest.java

        assertTrue("ByteBuffers should be equal.", expected.equals(actual));
      }
    
      public void testMap_noSuchFile() throws IOException {
        // Setup
        File file = createTempFile();
        boolean deleted = file.delete();
        assertTrue(deleted);
    
        // Test
        assertThrows(FileNotFoundException.class, () -> Files.map(file));
      }
    
      public void testMap_readWrite() throws IOException {
        // Test data
        int size = 1024;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 22.2K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/io/FilesCreateTempDirTest.java

          assertThat(temp.isDirectory()).isTrue();
          assertThat(temp.listFiles()).isEmpty();
          File child = new File(temp, "child");
          assertThat(child.createNewFile()).isTrue();
          assertThat(child.delete()).isTrue();
    
          if (!isAndroid() && !isWindows()) {
            PosixFileAttributes attributes =
                java.nio.file.Files.getFileAttributeView(temp.toPath(), PosixFileAttributeView.class)
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Oct 06 17:11:11 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/CompactLinkedHashMap.java

        setSucceeds(lastEntry, entryIndex);
        setSucceeds(entryIndex, ENDPOINT);
      }
    
      @Override
      void accessEntry(int index) {
        if (accessOrder) {
          // delete from previous position...
          setSucceeds(getPredecessor(index), getSuccessor(index));
          // ...and insert at the end.
          setSucceeds(lastEntry, index);
          setSucceeds(index, ENDPOINT);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/reflect/ClassPathTest.java

          assertThat(
                  new ClassPath.LocationInfo(jarFile, ClassPathTest.class.getClassLoader())
                      .scanResources())
              .hasSize(1);
        } finally {
          jarFile.delete();
        }
      }
    
    
      public void testScanFromFile_fileNotExists() throws IOException {
        ClassLoader classLoader = ClassPathTest.class.getClassLoader();
        assertThat(
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Apr 26 14:02:27 UTC 2024
    - 24.9K bytes
    - Viewed (0)
  7. guava/src/com/google/common/io/Files.java

        if (!from.renameTo(to)) {
          copy(from, to);
          if (!from.delete()) {
            if (!to.delete()) {
              throw new IOException("Unable to delete " + to);
            }
            throw new IOException("Unable to delete " + from);
          }
        }
      }
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 15 16:12:13 UTC 2024
    - 33.1K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/reflect/Types.java

        // non-hacky way (i.e. using String value class names- "[L...")?
        return Array.newInstance(componentType, 0).getClass();
      }
    
      // TODO(benyu): Once behavior is the same for all Java versions we support, delete this.
      enum JavaVersion {
        JAVA6 {
          @Override
          GenericArrayType newArrayType(Type componentType) {
            return new GenericArrayTypeImpl(componentType);
          }
    
          @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 17 16:33:44 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/LinkedHashMultimap.java

         *
         * The exception is the *InValueSet fields of multimapHeaderEntry, which are never set. (That
         * works out fine as long as we continue to be careful not to try to delete them or iterate
         * past them.)
         *
         * We could consider "lying" and omitting @CheckNotNull from all these fields. Normally, I'm not
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 23.6K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/LinkedHashMultimap.java

         *
         * The exception is the *InValueSet fields of multimapHeaderEntry, which are never set. (That
         * works out fine as long as we continue to be careful not to try to delete them or iterate
         * past them.)
         *
         * We could consider "lying" and omitting @CheckNotNull from all these fields. Normally, I'm not
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 24.3K bytes
    - Viewed (0)
Back to top