Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 122 for delete (0.19 sec)

  1. android/guava/src/com/google/common/io/FileBackedOutputStream.java

            memory = new MemoryOutput();
          } else {
            memory.reset();
          }
          out = memory;
          if (file != null) {
            File deleteMe = file;
            file = null;
            if (!deleteMe.delete()) {
              throw new IOException("Could not delete: " + deleteMe);
            }
          }
        }
      }
    
      @Override
      public synchronized void write(int b) throws IOException {
        update(1);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 8.2K bytes
    - Viewed (0)
  2. 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);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 8.5K bytes
    - Viewed (0)
  3. android/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);
          }
        }
      }
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 33.1K bytes
    - Viewed (0)
  4. 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
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  5. 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
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 23.6K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/Iterables.java

       *
       * <p>The returned iterable's iterator supports {@code remove()} if the iterator of the underlying
       * iterable supports it. Note that it is <i>not</i> possible to delete the last skipped element by
       * immediately calling {@code remove()} on that iterator, as the {@code Iterator} contract states
       * that a call to {@code remove()} before a call to {@code next()} will throw an {@link
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 24 19:38:27 GMT 2024
    - 42.8K bytes
    - Viewed (0)
  7. 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(
    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)
  8. android/guava/src/com/google/common/collect/TreeMultiset.java

          result[0] = elemCount;
          if (expectedCount == elemCount) {
            if (newCount == 0) {
              return deleteMe();
            }
            this.totalCount += newCount - elemCount;
            this.elemCount = newCount;
          }
          return this;
        }
    
        @CheckForNull
        private AvlNode<E> deleteMe() {
          int oldElemCount = this.elemCount;
          this.elemCount = 0;
          successor(pred(), succ());
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 34.2K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/util/concurrent/AbstractFuture.java

          Thread w = thread;
          if (w != null) {
            thread = null;
            LockSupport.unpark(w);
          }
        }
      }
    
      /**
       * Marks the given node as 'deleted' (null waiter) and then scans the list to unlink all deleted
       * nodes. This is an O(n) operation in the common case (and O(n^2) in the worst), but we are saved
       * by two things.
       *
       * <ul>
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 21:17:24 GMT 2024
    - 63K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/Multisets.java

          implements Serializable {
        final Multiset<? extends E> delegate;
    
        UnmodifiableMultiset(Multiset<? extends E> delegate) {
          this.delegate = delegate;
        }
    
        @SuppressWarnings("unchecked")
        @Override
        protected Multiset<E> delegate() {
          // This is safe because all non-covariant methods are overridden
          return (Multiset<E>) delegate;
        }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 41.7K bytes
    - Viewed (0)
Back to top