Search Options

Results per page
Sort
Preferred Languages
Advance

Results 161 - 170 of 282 for hasNext (0.1 sec)

  1. okhttp-idna-mapping-table/src/main/kotlin/okhttp3/internal/idn/MappingTables.kt

              current.section + 0x80,
              current.sourceCodePoint1,
              current.type,
              current.mappedTo,
            )
        } else {
          result += current
          current = if (i.hasNext()) i.next() else break
        }
      }
    
      return result
    }
    
    /** Returns a copy of [mappings] with adjacent ranges merged wherever possible. */
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/ForwardingMap.java

       *
       * @since 7.0
       */
      @CheckForNull
      protected V standardRemove(@CheckForNull Object key) {
        Iterator<Entry<K, V>> entryIterator = entrySet().iterator();
        while (entryIterator.hasNext()) {
          Entry<K, V> entry = entryIterator.next();
          if (Objects.equal(entry.getKey(), key)) {
            V value = entry.getValue();
            entryIterator.remove();
            return value;
          }
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 12 15:26:39 UTC 2023
    - 9.9K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/CacheTest.kt

        val i: Iterator<String> = cache.urls()
        assertThat(i.hasNext()).isTrue()
        assertThat(i.next()).isEqualTo(urlA.toString())
        assertThat(i.hasNext()).isTrue()
        assertThat(i.next()).isEqualTo(urlB.toString())
        assertThat(i.hasNext()).isTrue()
        assertThat(i.next()).isEqualTo(urlC.toString())
    
        // ... and nothing else.
        assertThat(i.hasNext()).isFalse()
        assertFailsWith<NoSuchElementException> {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Apr 10 19:46:48 UTC 2024
    - 108.6K bytes
    - Viewed (0)
  4. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/VersionsMetadataGenerator.java

             * the association between the artifacts of the same project.
             */
            for (Iterator<? extends Metadata> it = metadatas.iterator(); it.hasNext(); ) {
                Metadata metadata = it.next();
                if (metadata instanceof VersionsMetadata) {
                    it.remove();
                    VersionsMetadata versionsMetadata = (VersionsMetadata) metadata;
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4K bytes
    - Viewed (0)
  5. guava/src/com/google/common/base/Splitter.java

            checkArgument(entryFields.hasNext(), INVALID_ENTRY_MESSAGE, entry);
            String key = entryFields.next();
            checkArgument(!map.containsKey(key), "Duplicate key [%s] found.", key);
    
            checkArgument(entryFields.hasNext(), INVALID_ENTRY_MESSAGE, entry);
            String value = entryFields.next();
            map.put(key, value);
    
            checkArgument(!entryFields.hasNext(), INVALID_ENTRY_MESSAGE, entry);
          }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 21:14:05 UTC 2024
    - 24.5K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/internal/cache/DiskLruCacheTest.kt

        set("b", "b1", "b2")
        set("c", "c1", "c2")
        val iterator = cache.snapshots()
        assertThat(iterator.hasNext()).isTrue()
        iterator.next().use {
          assertThat(it.key()).isEqualTo("a")
          it.assertValue(0, "a1")
          it.assertValue(1, "a2")
        }
        assertThat(iterator.hasNext()).isTrue()
        iterator.next().use {
          assertThat(it.key()).isEqualTo("b")
          it.assertValue(0, "b1")
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 15 14:55:09 UTC 2024
    - 75.8K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/AbstractMapTester.java

        replaceValue(expected, newEntry);
        expectContents(expected);
      }
    
      private void replaceValue(List<Entry<K, V>> expected, Entry<K, V> newEntry) {
        for (ListIterator<Entry<K, V>> i = expected.listIterator(); i.hasNext(); ) {
          if (Helpers.equal(i.next().getKey(), newEntry.getKey())) {
            i.set(newEntry);
            return;
          }
        }
    
        throw new IllegalArgumentException(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/FilteredCollectionsTestUtil.java

            Iterator<Integer> filteredItr = filtered.iterator();
            for (Integer i : unfiltered) {
              if (EVEN.apply(i)) {
                assertTrue(filteredItr.hasNext());
                assertEquals(i, filteredItr.next());
              }
            }
            assertFalse(filteredItr.hasNext());
          }
        }
    
        public void testForEach() {
          for (List<Integer> contents : SAMPLE_INPUTS) {
            C unfiltered = createUnfiltered(contents);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 13K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/AbstractMultimap.java

          return !valueCollection.isEmpty() && get(key).addAll(valueCollection);
        } else {
          Iterator<? extends V> valueItr = values.iterator();
          return valueItr.hasNext() && Iterators.addAll(get(key), valueItr);
        }
      }
    
      @CanIgnoreReturnValue
      @Override
      public boolean putAll(Multimap<? extends K, ? extends V> multimap) {
        boolean changed = false;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 15 21:08:00 UTC 2021
    - 6.6K bytes
    - Viewed (0)
  10. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/PluginsMetadataGenerator.java

             * the association between the artifacts of the same project.
             */
            for (Iterator<? extends Metadata> it = metadatas.iterator(); it.hasNext(); ) {
                Metadata metadata = it.next();
                if (metadata instanceof PluginsMetadata) {
                    it.remove();
                    PluginsMetadata pluginMetadata = (PluginsMetadata) metadata;
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 7.9K bytes
    - Viewed (0)
Back to top