Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for stopped (0.16 sec)

  1. guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/LocalCache.java

      public V remove(Object key) {
        Timestamped<V> stamped = cachingHashMap.remove(key);
        if (stamped != null) {
          V value = stamped.getValue();
          // `key` was in the cache, so it's a K.
          // (Or it's a weird case like a LinkedList in a Cache<ArrayList, ...>, but *shrug*.)
          @SuppressWarnings("unchecked")
          K castKey = (K) key;
    
          if (!isExpired(stamped)) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 27 19:19:19 GMT 2024
    - 21.6K bytes
    - Viewed (0)
  2. 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
       * IllegalStateException}.
    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)
  3. android/guava/src/com/google/common/io/BaseEncoding.java

          StringBuilder stripped = new StringBuilder(chars.length());
          for (int i = 0; i < chars.length(); i++) {
            char c = chars.charAt(i);
            if (separator.indexOf(c) < 0) {
              stripped.append(c);
            }
          }
          return delegate.decodeTo(target, stripped);
        }
    
        @Override
        @J2ktIncompatible
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Mar 15 16:33:32 GMT 2024
    - 41.7K bytes
    - Viewed (0)
  4. guava/src/com/google/common/cache/LocalCache.java

                return true;
              }
            }
          }
          return false;
        }
    
        /**
         * Advances to the given entry. Returns true if the entry was valid, false if it should be
         * skipped.
         */
        boolean advanceTo(ReferenceEntry<K, V> entry) {
          try {
            long now = ticker.read();
            K key = entry.getKey();
            V value = getLiveValue(entry, now);
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 150.3K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/MoreExecutors.java

       * <p>The names are retrieved from the {@code nameSupplier} on the thread that is being renamed
       * right before each task is run. The renaming is best effort, if a {@link SecurityManager}
       * prevents the renaming then it will be skipped but the tasks will still execute.
       *
       * @param executor The executor to decorate
       * @param nameSupplier The source of names for each task
       */
      @J2ktIncompatible
      @GwtIncompatible // concurrency
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 41.8K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/MapMakerInternalMap.java

         * all preceding ones need to be cloned.
         *
         * <p>This method does not decrement count for the removed entry, but does decrement count for
         * all partially collected entries which are skipped. As such callers which are modifying count
         * must re-read it after calling removeFromChain.
         *
         * @param first the first entry of the table
         * @param entry the entry being removed from the table
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 91.9K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/Ordering.java

            Platform.tryWeakKeys(new MapMaker()).makeMap();
    
        private Integer getUid(Object obj) {
          Integer uid = uids.get(obj);
          if (uid == null) {
            // One or more integer values could be skipped in the event of a race
            // to generate a UID for the same object from multiple threads, but
            // that shouldn't be a problem.
            uid = counter.getAndIncrement();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 24 19:38:27 GMT 2024
    - 39.4K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/cache/LocalCache.java

                return true;
              }
            }
          }
          return false;
        }
    
        /**
         * Advances to the given entry. Returns true if the entry was valid, false if it should be
         * skipped.
         */
        boolean advanceTo(ReferenceEntry<K, V> entry) {
          try {
            long now = ticker.read();
            K key = entry.getKey();
            V value = getLiveValue(entry, now);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 144.7K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/Iterators.java

        checkNonnegative(position);
        int skipped = advance(iterator, position);
        if (!iterator.hasNext()) {
          throw new IndexOutOfBoundsException(
              "position ("
                  + position
                  + ") must be less than the number of elements that remained ("
                  + skipped
                  + ")");
        }
        return iterator.next();
      }
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Apr 30 18:43:01 GMT 2024
    - 51.1K bytes
    - Viewed (0)
Back to top