Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 476 for iterators (0.04 sec)

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

      }
    
      /**
       * A sensible definition of {@link #clear} in terms of the {@code iterator} method of {@link
       * #entrySet}. In many cases, you may wish to override {@link #clear} to forward to this
       * implementation.
       *
       * @since 7.0
       */
      protected void standardClear() {
        Iterators.clear(entrySet().iterator());
      }
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Aug 06 17:32:30 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Lists.java

            : newArrayList(elements.iterator());
      }
    
      /**
       * Creates a <i>mutable</i> {@code ArrayList} instance containing the given elements; a very thin
       * shortcut for creating an empty list and then calling {@link Iterators#addAll}.
       *
       * <p><b>Note:</b> if mutability is not required and the elements are non-null, use {@link
       * ImmutableList#copyOf(Iterator)} instead.
       */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 42.2K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/ImmutableSortedSet.java

       * @since 12.0
       */
      @GwtIncompatible // NavigableSet
      @Override
      public @Nullable E lower(E e) {
        return Iterators.<@Nullable E>getNext(headSet(e, false).descendingIterator(), null);
      }
    
      /**
       * @since 12.0
       */
      @Override
      public @Nullable E floor(E e) {
        return Iterators.<@Nullable E>getNext(headSet(e, true).descendingIterator(), null);
      }
    
      /**
       * @since 12.0
       */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 36.8K bytes
    - Viewed (0)
  4. docs/contribute/concurrency.md

    #### Per-Connection Locks
    
    Each connection has its own lock. The connections in the pool are all in a `ConcurrentLinkedQueue`. Due to data races, iterators of this queue may return removed connections. Callers must check the connection's `noNewExchanges` property before using connections from the pool.
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sun Feb 06 16:35:36 UTC 2022
    - 7K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/CompactHashSet.java

        return indexBeforeRemove - 1;
      }
    
      @Override
      public Iterator<E> iterator() {
        Set<E> delegate = delegateOrNull();
        if (delegate != null) {
          return delegate.iterator();
        }
        return new Iterator<E>() {
          int expectedMetadata = metadata;
          int currentIndex = firstEntryIndex();
          int indexToRemove = -1;
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 23.9K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/IterablesTest.java

        Iterator<String> iterator = skip(list, 2).iterator();
        assertThrows(IllegalStateException.class, () -> iterator.remove());
      }
    
      public void testSkip_allOfImmutableList_modifiable() {
        List<String> list = ImmutableList.of("a", "b");
        Iterator<String> iterator = skip(list, 2).iterator();
        assertThrows(UnsupportedOperationException.class, () -> iterator.remove());
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 46.6K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/Queues.java

       * of the deque's iterators:
       *
       * {@snippet :
       * Deque<E> deque = Queues.synchronizedDeque(Queues.<E>newArrayDeque());
       * ...
       * deque.add(element);  // Needn't be in synchronized block
       * ...
       * synchronized (deque) {  // Must synchronize on deque!
       *   Iterator<E> i = deque.iterator(); // Must be in synchronized block
       *   while (i.hasNext()) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 18.3K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/cache/CacheBuilder.java

     * Cache} interfaces. The {@code asMap} view (and its collection views) have <i>weakly consistent
     * iterators</i>. This means that they are safe for concurrent use, but if other threads modify the
     * cache after the iterator is created, it is undefined which of these changes, if any, are
     * reflected in that iterator. These iterators never throw {@link ConcurrentModificationException}.
     *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 51.7K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/IterablesTest.java

        Iterator<String> iterator = skip(list, 2).iterator();
        assertThrows(IllegalStateException.class, () -> iterator.remove());
      }
    
      public void testSkip_allOfImmutableList_modifiable() {
        List<String> list = ImmutableList.of("a", "b");
        Iterator<String> iterator = skip(list, 2).iterator();
        assertThrows(UnsupportedOperationException.class, () -> iterator.remove());
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 45.2K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/LinkedHashMultimap.java

          succeedsInValueSet(lastEntry, newEntry);
          lastEntry = newEntry;
        }
    
        private int mask() {
          return hashTable.length - 1;
        }
    
        @Override
        public Iterator<V> iterator() {
          return new Iterator<V>() {
            @Nullable ValueEntry<K, V> nextEntry = firstEntry;
            @Nullable ValueEntry<K, V> toRemove;
            int expectedModCount = modCount;
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 19.1K bytes
    - Viewed (0)
Back to top