Search Options

Results per page
Sort
Preferred Languages
Advance

Results 311 - 320 of 560 for iterators (0.54 sec)

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

        resetContainer(mapEntry(k0(), v0()), mapEntry(k0(), v3()));
        Set<Entry<K, Collection<V>>> asMapEntrySet = multimap().asMap().entrySet();
        Iterator<Entry<K, Collection<V>>> asMapEntryItr = asMapEntrySet.iterator();
        asMapEntryItr.next();
        asMapEntryItr.remove();
        assertTrue(multimap().isEmpty());
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Nov 14 23:40:07 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/Comparators.java

       */
      public static <T extends @Nullable Object> boolean isInOrder(
          Iterable<? extends T> iterable, Comparator<T> comparator) {
        checkNotNull(comparator);
        Iterator<? extends T> it = iterable.iterator();
        if (it.hasNext()) {
          T prev = it.next();
          while (it.hasNext()) {
            T next = it.next();
            if (comparator.compare(prev, next) > 0) {
              return false;
            }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  3. android/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).
       *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  4. guava/src/com/google/common/base/AbstractIterator.java

    import com.google.errorprone.annotations.CanIgnoreReturnValue;
    import java.util.Iterator;
    import java.util.NoSuchElementException;
    import org.jspecify.annotations.Nullable;
    
    /**
     * Note this class is a copy of {@link com.google.common.collect.AbstractIterator} (for dependency
     * reasons).
     */
    @GwtCompatible
    abstract class AbstractIterator<T extends @Nullable Object> implements Iterator<T> {
      private State state = State.NOT_READY;
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  5. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableMap.java

          return ImmutableMap.this.hashCode();
        }
    
        @Override
        UnmodifiableIterator<Entry<K, ImmutableSet<V>>> entryIterator() {
          final Iterator<Entry<K, V>> backingIterator = ImmutableMap.this.entrySet().iterator();
          return new UnmodifiableIterator<Entry<K, ImmutableSet<V>>>() {
            @Override
            public boolean hasNext() {
              return backingIterator.hasNext();
            }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Aug 06 18:32:41 UTC 2025
    - 16.7K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/google/AbstractMultimapTester.java

        return getEntryNullReplaces().getValue();
      }
    
      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();
      }
    
      protected void initMultimapWithNullKey() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  7. src/test/java/jcifs/SmbResourceTest.java

                // Then
                assertNotNull(children1, "All children iterator should not be null");
                assertNotNull(children2, "Wildcard children iterator should not be null");
                assertNotNull(children3, "Name filter children iterator should not be null");
                assertNotNull(children4, "Resource filter children iterator should not be null");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 35K bytes
    - Viewed (0)
  8. okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/MockHttp2Peer.kt

          }
        }
        val outputStream = socket.getOutputStream()
        val inputStream = socket.getInputStream()
        val reader = Http2Reader(inputStream.source().buffer(), client)
        val outFramesIterator: Iterator<OutFrame> = outFrames.iterator()
        val outBytes = bytesOut.readByteArray()
        var nextOutFrame: OutFrame? = null
        for (i in 0 until frameCount) {
          if (nextOutFrame == null && outFramesIterator.hasNext()) {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 8.7K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/LockHeldAssertingSet.java

       *
       * Similarly, we avoid having those methods *implemented* in terms of *other* TestSet methods
       * that will perform holdsLock assertions:
       *
       * - For iterator(), we can accomplish that by not overriding iterator() at all. That way, we
       *   inherit an implementation that forwards to the delegate collection, which performs no
       *   holdsLock assertions.
       *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Feb 13 17:34:21 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  10. compat/maven-compat/src/main/java/org/apache/maven/toolchain/DefaultToolchain.java

            StringBuilder builder = new StringBuilder();
            builder.append("type:").append(getType());
            builder.append('{');
    
            Iterator<Map.Entry<String, RequirementMatcher>> providesIter =
                    provides.entrySet().iterator();
            while (providesIter.hasNext()) {
                Map.Entry<String, RequirementMatcher> provideEntry = providesIter.next();
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Wed Feb 12 13:13:28 UTC 2025
    - 4.8K bytes
    - Viewed (0)
Back to top