Search Options

Results per page
Sort
Preferred Languages
Advance

Results 131 - 140 of 784 for iterator (0.1 sec)

  1. android/guava/src/com/google/common/collect/ForwardingMap.java

      }
    
      /**
       * A sensible definition of {@link #clear} in terms of the {@code iterator} method of {@link
       * #entrySet}. In many cases, you may wish to override {@link #clear} to forward to this
       * implementation.
       *
       * @since 7.0
       */
      protected void standardClear() {
        Iterators.clear(entrySet().iterator());
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 12 15:26:39 UTC 2023
    - 9.9K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/http/NtlmHttpURLConnection.java

            String authorization = null;
            List methods = (List) getHeaderFields0().get(authHeader);
            if (methods == null) return null;
            Iterator iterator = methods.iterator();
            while (iterator.hasNext()) {
                String currentAuthMethod = (String) iterator.next();
                if (currentAuthMethod.startsWith("NTLM")) {
                    if (currentAuthMethod.length() == 4) {
                        authMethod = "NTLM";
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 20:39:42 UTC 2019
    - 20.4K bytes
    - Viewed (0)
  3. src/bytes/iter.go

    import (
    	"iter"
    	"unicode"
    	"unicode/utf8"
    )
    
    // Lines returns an iterator over the newline-terminated lines in the byte slice s.
    // The lines yielded by the iterator include their terminating newlines.
    // If s is empty, the iterator yields no lines at all.
    // If s does not end in a newline, the final yielded line will not end in a newline.
    // It returns a single-use iterator.
    func Lines(s []byte) iter.Seq[[]byte] {
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Aug 14 18:23:13 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/AbstractBiMap.java

          return oldValue;
        }
      }
    
      Iterator<Entry<K, V>> entrySetIterator() {
        final Iterator<Entry<K, V>> iterator = delegate.entrySet().iterator();
        return new Iterator<Entry<K, V>>() {
          @CheckForNull Entry<K, V> entry;
    
          @Override
          public boolean hasNext() {
            return iterator.hasNext();
          }
    
          @Override
          public Entry<K, V> next() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Aug 24 01:40:03 UTC 2023
    - 14.6K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/io/CharSink.java

      public void writeLines(Stream<? extends CharSequence> lines, String lineSeparator)
          throws IOException {
        writeLines(lines.iterator(), lineSeparator);
      }
    
      private void writeLines(Iterator<? extends CharSequence> lines, String lineSeparator)
          throws IOException {
        checkNotNull(lineSeparator);
    
        try (Writer out = openBufferedStream()) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/core/collection/ArrayMapTest.java

            start = System.currentTimeMillis();
            for (Iterator<Map.Entry<String, Object>> i = hmap.entrySet().iterator(); i.hasNext();) {
                i.next();
            }
            System.out.println("HashMap iteration:" + (System.currentTimeMillis() - start));
    
            start = System.currentTimeMillis();
            for (Iterator<Map.Entry<String, Object>> i = amap.entrySet().iterator(); i.hasNext();) {
                i.next();
            }
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/Collections2Test.java

        Iterator<List<Integer>> permutations = permutationSet.iterator();
        assertNextPermutation(Collections.<Integer>emptyList(), permutations);
        assertNoMorePermutations(permutations);
      }
    
      public void testPermutationSetOneElement() {
        Iterator<List<Integer>> permutations =
            Collections2.permutations(Collections.<Integer>singletonList(1)).iterator();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Feb 21 10:16:44 UTC 2024
    - 19.7K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/eventbus/SubscriberRegistryTest.java

        assertEquals(1, Iterators.size(registry.getSubscribers(1)));
    
        registry.register(new IntegerSubscriber());
        assertEquals(3, Iterators.size(registry.getSubscribers("")));
        assertEquals(1, Iterators.size(registry.getSubscribers(new Object())));
        assertEquals(2, Iterators.size(registry.getSubscribers(1)));
      }
    
      public void testGetSubscribers_returnsImmutableSnapshot() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/TransformedIterator.java

    import static com.google.common.base.Preconditions.checkNotNull;
    
    import com.google.common.annotations.GwtCompatible;
    import java.util.Iterator;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * An iterator that transforms a backing iterator; for internal use. This avoids the object overhead
     * of constructing a {@link com.google.common.base.Function Function} for internal methods.
     *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Jul 09 17:31:04 UTC 2021
    - 1.7K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/testers/MapRemoveTester.java

      public void testRemovePresentConcurrentWithEntrySetIteration() {
        assertThrows(
            ConcurrentModificationException.class,
            () -> {
              Iterator<Entry<K, V>> iterator = getMap().entrySet().iterator();
              getMap().remove(k0());
              iterator.next();
            });
      }
    
      @MapFeature.Require({FAILS_FAST_ON_CONCURRENT_MODIFICATION, SUPPORTS_REMOVE})
      @CollectionSize.Require(SEVERAL)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 20:00:30 UTC 2024
    - 5.8K bytes
    - Viewed (0)
Back to top