Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 57 for iteratorAt (0.2 sec)

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

        }
        try {
          Iterator<Integer> iterator = unmod.iterator();
          iterator.next();
          iterator.remove();
          fail("UnsupportedOperationException expected");
        } catch (UnsupportedOperationException expected) {
        }
        try {
          Iterator<Integer> iterator = unmod.descendingIterator();
          iterator.next();
          iterator.remove();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 17 15:27:58 UTC 2024
    - 49.2K bytes
    - Viewed (0)
  2. subprojects/core/src/test/groovy/org/gradle/api/internal/AbstractDomainObjectCollectionSpec.groovy

            addToContainer(b)
            addToContainer(a)
            addToContainer(c)
    
            expect:
            def seen = []
            def iterator = container.iterator()
            seen << iterator.next()
            seen << iterator.next()
            seen << iterator.next()
            !iterator.hasNext()
            seen == iterationOrder(b, a, c)
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 13:46:07 UTC 2024
    - 52.4K bytes
    - Viewed (0)
  3. src/runtime/mbitmap.go

    	typ *_type
    }
    
    // typePointersOf returns an iterator over all heap pointers in the range [addr, addr+size).
    //
    // addr and addr+size must be in the range [span.base(), span.limit).
    //
    // Note: addr+size must be passed as the limit argument to the iterator's next method on
    // each iteration. This slightly awkward API is to allow typePointers to be destructured
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:18:55 UTC 2024
    - 60K bytes
    - Viewed (0)
  4. platforms/core-configuration/file-collections/src/test/groovy/org/gradle/api/internal/file/collections/DefaultConfigurableFileCollectionSpec.groovy

            def collection = Mock(Collection)
            this.collection.from(collection)
    
            when:
            this.collection.finalizeValue()
    
            then:
            1 * collection.iterator() >> ['a', 'b'].iterator()
            0 * collection._
            1 * fileResolver.resolve('a') >> file1
            1 * fileResolver.resolve('b') >> file2
    
            when:
            def files = this.collection.files
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 18 17:09:50 UTC 2024
    - 53K bytes
    - Viewed (0)
  5. platforms/core-configuration/model-core/src/test/groovy/org/gradle/api/internal/provider/CollectionPropertySpec.groovy

            property.set(toMutable(["abc"]))
            assertValueIs(["abc"])
        }
    
        def "can set value from various collection types"() {
            def iterable = Stub(Iterable)
            iterable.iterator() >> ["4", "5"].iterator()
    
            expect:
            property.set(["1", "2"])
            property.get() == toImmutable(["1", "2"])
    
            property.set(["2", "3"] as Set)
            property.get() == toImmutable(["2", "3"])
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 11:41:55 UTC 2024
    - 49.7K bytes
    - Viewed (0)
  6. src/index/suffixarray/sais2.go

    	// but at a significant speed cost. Instead, we just write these
    	// seven lines a few times in this source file. The copies below
    	// refer back to the pattern established by this original as the
    	// "LMS-substring iterator".
    	//
    	// In every scan through the text, c0, c1 are successive characters of text.
    	// In this backward scan, c0 == text[i] and c1 == text[i+1].
    	// By scanning backward, we can keep track of whether the current
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 18 23:57:18 UTC 2024
    - 52.3K bytes
    - Viewed (0)
  7. 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;
        @CheckForNull Segment<K, V, E, S> currentSegment;
        @CheckForNull AtomicReferenceArray<E> currentTable;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sat May 18 03:24:34 UTC 2024
    - 90.8K bytes
    - Viewed (0)
  8. 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: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 15 16:12:13 UTC 2024
    - 51.3K bytes
    - Viewed (0)
  9. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/CopyTaskIntegrationSpec.groovy

                   }
                }
            '''.stripIndent()
    
            when:
            run 'copy'
    
            then:
            def it = file('dest/two.a').readLines().iterator()
            it.next().startsWith('6')
            it.next().startsWith('11')
            it.next().startsWith('16')
        }
    
        def "can rename files in eachFile() action defined using Groovy closure"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 67.9K bytes
    - Viewed (0)
  10. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/configurations/DefaultConfiguration.java

        public Set<File> resolve() {
            warnOnDeprecatedUsage("resolve()", ProperMethodUsage.RESOLVABLE);
            return getFiles();
        }
    
        @Override
        public Iterator<File> iterator() {
            return getIntrinsicFiles().iterator();
        }
    
        @Override
        protected void visitContents(FileCollectionStructureVisitor visitor) {
            getIntrinsicFiles().visitStructure(visitor);
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 17:36:01 UTC 2024
    - 85.4K bytes
    - Viewed (0)
Back to top