Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 191 - 200 of 466 for Iterators (0.07 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. impl/maven-core/src/main/java/org/apache/maven/plugin/CacheUtils.java

        }
    
        private static boolean dependenciesEquals(List<Dependency> a, List<Dependency> b) {
            if (a.size() != b.size()) {
                return false;
            }
    
            Iterator<Dependency> aI = a.iterator();
            Iterator<Dependency> bI = b.iterator();
    
            while (aI.hasNext()) {
                Dependency aD = aI.next();
                Dependency bD = bI.next();
    
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 4.5K bytes
    - Click Count (0)
  2. guava-testlib/src/com/google/common/collect/testing/testers/MapPutTester.java

      public void testPutAbsentConcurrentWithEntrySetIteration() {
        assertThrows(
            ConcurrentModificationException.class,
            () -> {
              Iterator<Entry<K, V>> iterator = getMap().entrySet().iterator();
              put(e3());
              iterator.next();
            });
      }
    
      @MapFeature.Require({FAILS_FAST_ON_CONCURRENT_MODIFICATION, SUPPORTS_PUT})
      @CollectionSize.Require(absent = ZERO)
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 9.1K bytes
    - Click Count (0)
  3. impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultLifecycleRegistry.java

                    }
                });
            }
        }
    
        @Override
        public Iterator<Lifecycle> iterator() {
            return stream().toList().iterator();
        }
    
        @Override
        public Stream<Lifecycle> stream() {
            return providers.stream().map(ExtensibleEnumProvider::provides).flatMap(Collection::stream);
        }
    
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Mon Sep 29 14:45:25 GMT 2025
    - 20.1K bytes
    - Click Count (0)
  4. okhttp/src/jvmTest/kotlin/okhttp3/internal/cache/DiskLruCacheTest.kt

        set("b", "b1", "b2")
        val iterator = cache.snapshots()
        cache.remove("b")
        iterator.next().use {
          assertThat(it.key()).isEqualTo("a")
        }
        assertThat(iterator.hasNext()).isFalse()
      }
    
      @Test
      fun iteratorRemove() {
        set("a", "a1", "a2")
        val iterator = cache.snapshots()
        val a = iterator.next()
        a.close()
        iterator.remove()
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Sat Nov 01 12:18:11 GMT 2025
    - 59.4K bytes
    - Click Count (0)
  5. src/test/java/jcifs/smb/DirFileEntryEnumIterator2Test.java

            // Act: create iterator and enumerate
            DirFileEntryEnumIterator2 it = new DirFileEntryEnumIterator2(tree, parent, wildcard, (ResourceNameFilter) null, 0);
    
            // Assert: first page
            assertTrue(it.hasNext(), "Iterator should have first element");
            assertSame(fe1, it.next(), "First element must match first page");
            assertTrue(it.hasNext(), "Iterator should have second element");
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 13.7K bytes
    - Click Count (0)
  6. guava-testlib/src/com/google/common/collect/testing/testers/CollectionRemoveAllTester.java

      public void testRemoveAllSomePresentConcurrentWithIteration() {
        assertThrows(
            ConcurrentModificationException.class,
            () -> {
              Iterator<E> iterator = collection.iterator();
              assertTrue(collection.removeAll(MinimalCollection.of(e0(), e3())));
              iterator.next();
            });
      }
    
      /** Trigger the {@code other.size() >= this.size()} case in {@link AbstractSet#removeAll}. */
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Nov 14 23:40:07 GMT 2024
    - 7.7K bytes
    - Click Count (0)
  7. guava/src/com/google/common/collect/AbstractBiMap.java

          return oldValue;
        }
      }
    
      Iterator<Entry<K, V>> entrySetIterator() {
        Iterator<Entry<K, V>> iterator = delegate.entrySet().iterator();
        return new Iterator<Entry<K, V>>() {
          @Nullable Entry<K, V> entry;
    
          @Override
          public boolean hasNext() {
            return iterator.hasNext();
          }
    
          @Override
          public Entry<K, V> next() {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Sep 22 15:50:50 GMT 2025
    - 14.3K bytes
    - Click Count (0)
  8. guava/src/com/google/common/collect/AbstractMapBasedMultiset.java

       * was retrieved.
       */
      @Override
      public Set<Multiset.Entry<E>> entrySet() {
        return super.entrySet();
      }
    
      @Override
      Iterator<E> elementIterator() {
        Iterator<Map.Entry<E, Count>> backingEntries = backingMap.entrySet().iterator();
        return new Iterator<E>() {
          Map.@Nullable Entry<E, Count> toRemove;
    
          @Override
          public boolean hasNext() {
            return backingEntries.hasNext();
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Aug 11 19:31:30 GMT 2025
    - 10.2K bytes
    - Click Count (0)
  9. android/guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedPriorityBlockingQueue.java

        }
      }
    
      /**
       * Returns an iterator over the elements in this queue. The iterator does not return the elements
       * in any particular order. The returned {@code Iterator} is a "weakly consistent" iterator that
       * will never throw {@link ConcurrentModificationException}, and guarantees to traverse elements
       * as they existed upon construction of the iterator, and may (but is not guaranteed to) reflect
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue May 13 18:46:00 GMT 2025
    - 18.9K bytes
    - Click Count (0)
  10. android/guava/src/com/google/common/collect/ForwardingSet.java

      }
    
      @Override
      public int hashCode() {
        return delegate().hashCode();
      }
    
      /**
       * A sensible definition of {@link #removeAll} in terms of {@link #iterator} and {@link #remove}.
       * If you override {@code iterator} or {@code remove}, you may wish to override {@link #removeAll}
       * to forward to this implementation.
       *
       * @since 7.0 (this version overrides the {@code ForwardingCollection} version as of 12.0)
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 3.7K bytes
    - Click Count (0)
Back to Top