Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 533 for iterated (0.36 sec)

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

      }
    
      /*
       * TODO: if we're testing a list, we could check indexOf(). (Doing it in
       * AbstractListTester isn't enough because many tests that run on lists don't
       * extends AbstractListTester.) We could also iterate over all elements to
       * verify absence
       */
      protected void expectMissing(E... elements) {
        for (E element : elements) {
          assertFalse("Should not contain " + element, actualContents().contains(element));
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  2. 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)
  3. guava/src/com/google/common/graph/EndpointPair.java

       * endpoints of a directed edge).
       */
      public abstract boolean isOrdered();
    
      /** Iterates in the order {@link #nodeU()}, {@link #nodeV()}. */
      @Override
      public final UnmodifiableIterator<N> iterator() {
        return Iterators.forArray(nodeU, nodeV);
      }
    
      /**
       * Two ordered {@link EndpointPair}s are equal if their {@link #source()} and {@link #target()}
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 8.1K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/RangeMap.java

      /**
       * Returns a view of this range map as an unmodifiable {@code Map<Range<K>, V>}. Modifications to
       * this range map are guaranteed to read through to the returned {@code Map}.
       *
       * <p>The returned {@code Map} iterates over entries in ascending order of the bounds of the
       * {@code Range} entries.
       *
       * <p>It is guaranteed that no empty ranges will be in the returned {@code Map}.
       */
      Map<Range<K>, V> asMapOfRanges();
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/IterablesTest.java

        Iterator<String> iterator = skip(list, 2).iterator();
        assertThrows(IllegalStateException.class, () -> iterator.remove());
      }
    
      public void testSkip_allOfImmutableList_modifiable() {
        List<String> list = ImmutableList.of("a", "b");
        Iterator<String> iterator = skip(list, 2).iterator();
        assertThrows(UnsupportedOperationException.class, () -> iterator.remove());
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 46.6K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/IterablesTest.java

        Iterator<String> iterator = skip(list, 2).iterator();
        assertThrows(IllegalStateException.class, () -> iterator.remove());
      }
    
      public void testSkip_allOfImmutableList_modifiable() {
        List<String> list = ImmutableList.of("a", "b");
        Iterator<String> iterator = skip(list, 2).iterator();
        assertThrows(UnsupportedOperationException.class, () -> iterator.remove());
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 45.2K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/MinimalIterable.java

        return (MinimalIterable) of(elements.toArray());
      }
    
      private @Nullable Iterator<E> iterator;
    
      private MinimalIterable(Iterator<E> iterator) {
        this.iterator = iterator;
      }
    
      @Override
      public Iterator<E> iterator() {
        if (iterator == null) {
          // TODO: throw something else? Do we worry that people's code and tests
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  8. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/cache/DiskLruCache.kt

      }
    
      /**
       * Returns an iterator over the cache's current entries. This iterator doesn't throw
       * `ConcurrentModificationException`, but if new entries are added while iterating, those new
       * entries will not be returned by the iterator. If existing entries are removed during iteration,
       * they will be absent (unless they were already returned).
       *
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed May 28 23:28:25 UTC 2025
    - 34.7K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/IteratorTester.java

    import java.util.Collections;
    import java.util.Iterator;
    import org.jspecify.annotations.NullMarked;
    import org.jspecify.annotations.Nullable;
    
    /**
     * A utility for testing an Iterator implementation by comparing its behavior to that of a "known
     * good" reference implementation. In order to accomplish this, it's important to test a great
     * variety of sequences of the {@link Iterator#next}, {@link Iterator#hasNext} and {@link
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/IteratorFeature.java

      /** Support for {@link Iterator#remove()}. */
      SUPPORTS_REMOVE,
      /**
       * Support for {@link ListIterator#add(Object)}; ignored for plain {@link Iterator}
       * implementations.
       */
      SUPPORTS_ADD,
      /**
       * Support for {@link ListIterator#set(Object)}; ignored for plain {@link Iterator}
       * implementations.
       */
      SUPPORTS_SET;
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Oct 03 18:22:43 UTC 2023
    - 1.9K bytes
    - Viewed (0)
Back to top