Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 1,481 for iteration (0.08 sec)

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

      /**
       * Performs the given action for all key-value pairs contained in this multimap. If an ordering is
       * specified by the {@code Multimap} implementation, actions will be performed in the order of
       * iteration of {@link #entries()}. Exceptions thrown by the action are relayed to the caller.
       *
       * <p>To loop over all keys and their associated value collections, write {@code
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 15.7K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/TreeRangeSet.java

          return null;
        }
    
        @Override
        Iterator<Entry<Cut<C>, Range<C>>> entryIterator() {
          /*
           * We want to start the iteration at the first range where the upper bound is in
           * upperBoundWindow.
           */
          Iterator<Range<C>> backingItr;
          if (!upperBoundWindow.hasLowerBound()) {
            backingItr = rangesByLowerBound.values().iterator();
          } else {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 32.3K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/base/SplitterTest.java

       */
      private void assertSplitterIterableIsLazy(Splitter splitter) {
        StringBuilder builder = new StringBuilder();
        Iterator<String> iterator = splitter.split(builder).iterator();
    
        builder.append("A,");
        assertEquals("A", iterator.next());
        builder.append("B,");
        assertEquals("B", iterator.next());
        builder.append("C");
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 29.5K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/HashBiMap.java

        View(HashBiMap<K, V> biMap) {
          this.biMap = biMap;
        }
    
        @ParametricNullness
        abstract T forEntry(int entry);
    
        @Override
        public Iterator<T> iterator() {
          return new Iterator<T>() {
            private int index = biMap.firstInInsertionOrder;
            private int indexToRemove = ABSENT;
            private int expectedModCount = biMap.modCount;
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 36.2K bytes
    - Viewed (0)
  5. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Cache.kt

        cache.evictAll()
      }
    
      /**
       * Returns an iterator over the URLs in this cache. This iterator doesn't throw
       * `ConcurrentModificationException`, but if new responses are added while iterating, their URLs
       * will not be returned. If existing responses are evicted during iteration, they will be absent
       * (unless they were already returned).
       *
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 16 09:39:51 UTC 2025
    - 26.9K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/StandardTable.java

        Map<R, V> output = new LinkedHashMap<>();
        Iterator<Entry<R, Map<C, V>>> iterator = backingMap.entrySet().iterator();
        while (iterator.hasNext()) {
          Entry<R, Map<C, V>> entry = iterator.next();
          V value = entry.getValue().remove(column);
          if (value != null) {
            output.put(entry.getKey(), value);
            if (entry.getValue().isEmpty()) {
              iterator.remove();
            }
          }
        }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 30.2K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java

        q.remove(9);
        q.remove(11);
        q.remove(10);
        // Now we're in the critical state: [1, 15, 13, 8, 14]
        // Removing 8 while iterating caused duplicates in iteration result.
        List<Integer> result = Lists.newArrayListWithCapacity(initial.size());
        for (Iterator<Integer> iter = q.iterator(); iter.hasNext(); ) {
          Integer value = iter.next();
          result.add(value);
          if (value == 8) {
            iter.remove();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 36K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/Smb2EncryptionContextTest.java

                byte[] nonce = encryptionContext.generateNonce();
                String nonceHex = bytesToHex(nonce);
                boolean added = nonceSet.add(nonceHex);
                assertTrue(added, "Nonce collision detected at iteration " + i);
            }
    
            // Then
            assertEquals(count, nonceSet.size(), "All generated nonces should be unique");
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 44.1K bytes
    - Viewed (0)
  9. cmd/notification.go

    			if err := f(); err != nil {
    				g.errs[index].Err = err
    
    				if contextCanceled(ctx) {
    					// context already canceled no retries.
    					retryCount = 0
    				}
    
    				// Last iteration log the error.
    				if i == retryCount-1 {
    					reqInfo := (&logger.ReqInfo{}).AppendTags("peerAddress", addr.String())
    					ctx := logger.SetReqInfo(ctx, reqInfo)
    					peersLogOnceIf(ctx, err, addr.String())
    				}
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 45.9K bytes
    - Viewed (0)
  10. okhttp/src/jvmTest/kotlin/okhttp3/CacheTest.kt

            .Builder()
            .body("c")
            .build(),
        )
        val urlC = server.url("/c")
        assertThat(get(urlC).body.string()).isEqualTo("c")
    
        // Confirm the iterator returns those responses...
        val i: Iterator<String> = cache.urls()
        assertThat(i.hasNext()).isTrue()
        assertThat(i.next()).isEqualTo(urlA.toString())
        assertThat(i.hasNext()).isTrue()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 16 09:39:51 UTC 2025
    - 113.6K bytes
    - Viewed (0)
Back to top