Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 391 - 400 of 607 for Iterators (0.07 seconds)

  1. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapPutTester.java

        List<K> keys = copyToList(multimap().keySet());
        for (K key : keys) {
          resetContainer();
    
          int size = getNumElements();
    
          Iterator<Entry<K, Collection<V>>> asMapItr = multimap().asMap().entrySet().iterator();
          Collection<V> collection = null;
          while (asMapItr.hasNext()) {
            Entry<K, Collection<V>> asMapEntry = asMapItr.next();
            if (key.equals(asMapEntry.getKey())) {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Sep 22 20:54:16 GMT 2025
    - 7.3K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/collect/ImmutableMapEntrySet.java

        int copyIntoArray(@Nullable Object[] dst, int offset) {
          return entries.copyIntoArray(dst, offset);
        }
    
        @Override
        public UnmodifiableIterator<Entry<K, V>> iterator() {
          return entries.iterator();
        }
    
        @Override
        ImmutableList<Entry<K, V>> createAsList() {
          return entries;
        }
    
        // redeclare to help optimizers with b/310253115
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Sep 23 17:50:58 GMT 2025
    - 3.7K bytes
    - Click Count (0)
  3. guava/src/com/google/common/collect/AbstractIndexedListIterator.java

      private int position;
    
      /** Returns the element with the specified index. This method is called by {@link #next()}. */
      @ParametricNullness
      protected abstract E get(int index);
    
      /**
       * Constructs an iterator across a sequence of the given size whose initial position is 0. That
       * is, the first call to {@link #next()} will return the first element (or throw {@link
       * NoSuchElementException} if {@code size} is zero).
       *
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 3.2K bytes
    - Click Count (0)
  4. android/guava-tests/test/com/google/common/io/MultiInputStreamTest.java

                              public long skip(long n) {
                                return 0;
                              }
                            };
                          }
                        })
                    .iterator());
        assertEquals(0, multi.skip(-1));
        assertEquals(0, multi.skip(-1));
        assertEquals(0, multi.skip(0));
        ByteStreams.skipFully(multi, 20);
        assertEquals(20, multi.read());
      }
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Oct 28 18:44:53 GMT 2025
    - 4.7K bytes
    - Click Count (0)
  5. guava-tests/test/com/google/common/collect/HashMultisetTest.java

        Multiset<Multiset<?>> multiset = HashMultiset.create();
        multiset.add(multiset, 2);
        Multiset<Multiset<?>> copy = SerializableTester.reserialize(multiset);
        assertEquals(2, copy.size());
        assertSame(copy, copy.iterator().next());
      }
    
      @J2ktIncompatible
      @GwtIncompatible // Only used by @GwtIncompatible code
      private static class MultisetHolder implements Serializable {
        private final Multiset<?> member;
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 4.5K bytes
    - Click Count (0)
  6. guava/src/com/google/common/collect/ImmutableMapEntrySet.java

        int copyIntoArray(@Nullable Object[] dst, int offset) {
          return entries.copyIntoArray(dst, offset);
        }
    
        @Override
        public UnmodifiableIterator<Entry<K, V>> iterator() {
          return entries.iterator();
        }
    
        @Override
        @GwtIncompatible("Spliterator")
        public Spliterator<Entry<K, V>> spliterator() {
          return entries.spliteratorWithCharacteristics(SPLITERATOR_CHARACTERISTICS);
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Nov 17 22:50:48 GMT 2025
    - 4.3K bytes
    - Click Count (0)
  7. guava-testlib/src/com/google/common/collect/testing/AbstractMapTester.java

      }
    
      protected K getKeyForNullValue() {
        return getEntryNullReplaces().getKey();
      }
    
      private Entry<K, V> getEntryNullReplaces() {
        Iterator<Entry<K, V>> entries = getSampleElements().iterator();
        for (int i = 0; i < getNullLocation(); i++) {
          entries.next();
        }
        return entries.next();
      }
    
      /**
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sat Jan 18 02:54:30 GMT 2025
    - 7.8K bytes
    - Click Count (0)
  8. src/test/java/jcifs/smb/DirFileEntryEnumIterator1Test.java

            // Tree handle is released after close
            verify(tree, atLeastOnce()).release();
        }
    
        @Test
        @DisplayName("open(): server returns NO_SUCH_FILE after receiving response -> iterator empty, closed")
        void openHandlesNoSuchFileGracefully() throws Exception {
            when(tree.send(any(Trans2FindFirst2.class), any(Trans2FindFirst2Response.class))).thenAnswer((InvocationOnMock inv) -> {
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 12.7K bytes
    - Click Count (0)
  9. src/main/java/org/codelibs/fess/dict/DictionaryFile.java

            }
    
            @Override
            public boolean contains(final Object o) {
                return parent.contains(o);
            }
    
            @Override
            public Iterator<E> iterator() {
                return parent.iterator();
            }
    
            @Override
            public Object[] toArray() {
                return parent.toArray();
            }
    
            @Override
    Created: Sat Dec 20 09:19:18 GMT 2025
    - Last Modified: Thu Nov 20 07:09:00 GMT 2025
    - 11.2K bytes
    - Click Count (0)
  10. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/-HeadersCommon.kt

          if (result == null) result = ArrayList(2)
          result.add(value(i))
        }
      }
      return result?.unmodifiable().orEmpty()
    }
    
    internal fun Headers.commonIterator(): Iterator<Pair<String, String>> = Array(size) { name(it) to value(it) }.iterator()
    
    internal fun Headers.commonNewBuilder(): Headers.Builder {
      val result = Headers.Builder()
      result.namesAndValues += namesAndValues
      return result
    }
    
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Mon May 05 16:01:00 GMT 2025
    - 5.8K bytes
    - Click Count (0)
Back to Top