Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 16 for Iterators (0.05 seconds)

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

  1. guava-tests/test/com/google/common/collect/IteratorsTest.java

      }
    
      public void testSize1() {
        Iterator<Integer> iterator = singleton(0).iterator();
        assertEquals(1, Iterators.size(iterator));
      }
    
      public void testSize_partiallyConsumed() {
        Iterator<Integer> iterator = asList(1, 2, 3, 4, 5).iterator();
        iterator.next();
        iterator.next();
        assertEquals(3, Iterators.size(iterator));
      }
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Oct 28 18:44:53 GMT 2025
    - 56.7K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/collect/Sets.java

            return set1.isEmpty() && set2.isEmpty();
          }
    
          @Override
          public UnmodifiableIterator<E> iterator() {
            return new AbstractIterator<E>() {
              final Iterator<? extends E> itr1 = set1.iterator();
              final Iterator<? extends E> itr2 = set2.iterator();
    
              @Override
              protected @Nullable E computeNext() {
                if (itr1.hasNext()) {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Sep 22 18:35:44 GMT 2025
    - 81.6K bytes
    - Click Count (0)
  3. android/guava-tests/test/com/google/common/collect/MapsTest.java

            () -> {
              Iterator<String> iterator = values.iterator();
              iterator.next();
              iterator.remove();
            });
    
        Set<Entry<Integer, String>> entries = unmod.entrySet();
        assertThrows(
            UnsupportedOperationException.class,
            () -> {
              Iterator<Entry<Integer, String>> iterator = entries.iterator();
              iterator.next();
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Dec 11 22:56:33 GMT 2025
    - 62.7K bytes
    - Click Count (0)
  4. 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}.
     *
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Wed Oct 08 18:55:33 GMT 2025
    - 51.9K bytes
    - Click Count (0)
  5. 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)
  6. android/guava/src/com/google/common/collect/MapMakerInternalMap.java

      @Override
      public Set<Entry<K, V>> entrySet() {
        Set<Entry<K, V>> es = entrySet;
        return (es != null) ? es : (entrySet = new EntrySet());
      }
    
      // Iterator Support
    
      abstract class HashIterator<T> implements Iterator<T> {
    
        int nextSegmentIndex;
        int nextTableIndex;
        @Nullable Segment<K, V, E, S> currentSegment;
        @Nullable AtomicReferenceArray<E> currentTable;
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Sep 22 18:35:44 GMT 2025
    - 89.9K bytes
    - Click Count (0)
  7. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelBuilder.java

            ModelBuildingRequest importRequest = null;
    
            List<DependencyManagement> importMgmts = null;
    
            for (Iterator<Dependency> it = depMgmt.getDependencies().iterator(); it.hasNext(); ) {
                Dependency dependency = it.next();
    
                if (!"pom".equals(dependency.getType()) || !"import".equals(dependency.getScope())) {
                    continue;
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Sun Mar 30 23:08:08 GMT 2025
    - 55.3K bytes
    - Click Count (0)
  8. compat/maven-model-builder/src/main/java/org/apache/maven/model/validation/DefaultModelValidator.java

            };
            final Supplier<InputLocation> locationSupplier = () -> {
                if (stk.size() < 2) {
                    return null;
                }
                Iterator<ActivationFrame> f = stk.iterator();
    
                String location = f.next().location;
                ActivationFrame parent = f.next();
    
                return parent.parent.map(p -> p.getLocation(location)).orElse(null);
            };
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Sep 03 15:06:05 GMT 2025
    - 66.8K bytes
    - Click Count (0)
  9. compat/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java

            // properties will be computed through the RootLocator found in the container.
            RootLocator rootLocator =
                    ServiceLoader.load(RootLocator.class).iterator().next();
            cliRequest.rootDirectory = rootLocator.findRoot(topDirectory);
    
            //
            // Make sure the Maven home directory is an absolute path to save us from confusion with say drive-relative
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Mon Oct 27 13:24:03 GMT 2025
    - 78.1K bytes
    - Click Count (0)
  10. okhttp/api/jvm/okhttp.api

    	public final fun getDate (Ljava/lang/String;)Ljava/util/Date;
    	public final fun getInstant (Ljava/lang/String;)Ljava/time/Instant;
    	public fun hashCode ()I
    	public fun iterator ()Ljava/util/Iterator;
    	public final fun name (I)Ljava/lang/String;
    	public final fun names ()Ljava/util/Set;
    	public final fun newBuilder ()Lokhttp3/Headers$Builder;
    	public static final fun of (Ljava/util/Map;)Lokhttp3/Headers;
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Nov 05 18:28:35 GMT 2025
    - 70.2K bytes
    - Click Count (0)
Back to Top