Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for toRemove (0.05 sec)

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

            checkState(toRemove != null, "no calls to next() since the last call to remove()");
            size -= toRemove.getValue().getAndSet(0);
            backingEntries.remove();
            toRemove = null;
          }
        };
      }
    
      @Override
      Iterator<Entry<E>> entryIterator() {
        Iterator<Map.Entry<E, Count>> backingEntries = backingMap.entrySet().iterator();
        return new Iterator<Multiset.Entry<E>>() {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 10.2K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/AbstractMapBasedMultiset.java

          }
          T result = result(entryIndex);
          toRemove = entryIndex;
          entryIndex = backingMap.nextIndex(entryIndex);
          return result;
        }
    
        @Override
        public void remove() {
          checkForConcurrentModification();
          CollectPreconditions.checkRemove(toRemove != -1);
          size -= backingMap.removeEntry(toRemove);
          entryIndex = backingMap.nextIndexAfterRemove(entryIndex, toRemove);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Fri Dec 05 23:15:58 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/FilteredCollectionsTestUtil.java

        }
    
        public void testRemove() {
          for (List<Integer> contents : SAMPLE_INPUTS) {
            for (int toRemove = 0; toRemove < 10; toRemove++) {
              assertEquals(
                  contents.contains(toRemove) && EVEN.apply(toRemove),
                  filter(createUnfiltered(contents), EVEN).remove(toRemove));
            }
          }
        }
    
        public void testContains() {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/EnumMultiset.java

          }
          T result = output(index);
          toRemove = index;
          index++;
          return result;
        }
    
        @Override
        public void remove() {
          checkRemove(toRemove >= 0);
          if (counts[toRemove] > 0) {
            distinctElements--;
            size -= counts[toRemove];
            counts[toRemove] = 0;
          }
          toRemove = -1;
        }
      }
    
      @Override
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/ForwardingNavigableMap.java

              } finally {
                toRemove = nextOrNull;
                nextOrNull = forward().lowerEntry(nextOrNull.getKey());
              }
            }
    
            @Override
            public void remove() {
              if (toRemove == null) {
                throw new IllegalStateException("no calls to next() since the last call to remove()");
              }
              forward().remove(toRemove.getKey());
              toRemove = null;
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/ForwardingNavigableMap.java

              } finally {
                toRemove = nextOrNull;
                nextOrNull = forward().lowerEntry(nextOrNull.getKey());
              }
            }
    
            @Override
            public void remove() {
              if (toRemove == null) {
                throw new IllegalStateException("no calls to next() since the last call to remove()");
              }
              forward().remove(toRemove.getKey());
              toRemove = null;
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/TreeRangeMap.java

            List<Range<K>> toRemove = new ArrayList<>();
            for (Entry<Range<K>, V> entry : entrySet()) {
              if (predicate.apply(entry)) {
                toRemove.add(entry.getKey());
              }
            }
            for (Range<K> range : toRemove) {
              TreeRangeMap.this.remove(range);
            }
            return !toRemove.isEmpty();
          }
    
          @Override
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 23 17:50:58 UTC 2025
    - 22.7K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/TreeRangeMap.java

            List<Range<K>> toRemove = new ArrayList<>();
            for (Entry<Range<K>, V> entry : entrySet()) {
              if (predicate.apply(entry)) {
                toRemove.add(entry.getKey());
              }
            }
            for (Range<K> range : toRemove) {
              TreeRangeMap.this.remove(range);
            }
            return !toRemove.isEmpty();
          }
    
          @Override
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 23 17:50:58 UTC 2025
    - 26.5K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb/SmbTransportPoolImpl.java

                log.debug("Scheduling transport connection for removal " + trans + " (" + System.identityHashCode(trans) + ")");
            }
            this.toRemove.add((SmbTransportImpl) trans);
        }
    
        private void cleanup() {
            SmbTransportImpl trans;
            while ((trans = this.toRemove.poll()) != null) {
                if (log.isDebugEnabled()) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 33.4K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/Iterators.java

          if (hasNext()) {
            toRemove = iterator;
            return iterator.next();
          } else {
            throw new NoSuchElementException();
          }
        }
    
        @Override
        public void remove() {
          if (toRemove == null) {
            throw new IllegalStateException("no calls to next() since the last call to remove()");
          }
          toRemove.remove();
          toRemove = null;
        }
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 16 12:42:11 UTC 2025
    - 51.4K bytes
    - Viewed (0)
Back to top