Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 171 - 180 of 483 for iterables (0.05 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

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

      @Override
      public <E extends Comparable<?>> E min(Iterator<E> iterator) {
        return NaturalOrdering.INSTANCE.max(iterator);
      }
    
      @Override
      public <E extends Comparable<?>> E min(Iterable<E> iterable) {
        return NaturalOrdering.INSTANCE.max(iterable);
      }
    
      @Override
      public <E extends Comparable<?>> E max(E a, E b) {
        return NaturalOrdering.INSTANCE.min(a, b);
      }
    
      @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Jun 04 13:03:16 GMT 2025
    - 3K bytes
    - Click Count (0)
  2. docs_src/stream_data/tutorial002_py310.py

    @app.get("/image/stream-no-async", response_class=PNGStreamingResponse)
    def stream_image_no_async() -> Iterable[bytes]:
        with read_image() as image_file:
            for chunk in image_file:
                yield chunk
    
    
    @app.get("/image/stream-no-async-yield-from", response_class=PNGStreamingResponse)
    def stream_image_no_async_yield_from() -> Iterable[bytes]:
        with read_image() as image_file:
            yield from image_file
    
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Feb 27 20:51:40 GMT 2026
    - 5.6K bytes
    - Click Count (0)
  3. android/guava-tests/test/com/google/common/collect/IteratorsTest.java

        Iterable<String> iterable = asList("a", "b");
        Iterator<String> cycle = Iterators.cycle(iterable);
        cycle.next();
        assertThrows(UnsupportedOperationException.class, () -> cycle.remove());
      }
    
      public void testCycleRemoveAfterHasNext() {
        Iterable<String> iterable = Lists.newArrayList("a");
        Iterator<String> cycle = Iterators.cycle(iterable);
        assertTrue(cycle.hasNext());
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 57.3K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/collect/ReverseOrdering.java

      }
    
      @Override
      public <E extends T> E min(Iterator<E> iterator) {
        return forwardOrder.max(iterator);
      }
    
      @Override
      public <E extends T> E min(Iterable<E> iterable) {
        return forwardOrder.max(iterable);
      }
    
      @Override
      public <E extends T> E max(@ParametricNullness E a, @ParametricNullness E b) {
        return forwardOrder.min(a, b);
      }
    
      @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Jun 04 13:03:16 GMT 2025
    - 3.2K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/collect/MinMaxPriorityQueue.java

            lastFromForgetMeNot = null;
          }
        }
    
        /** Returns true if an exact reference (==) was found and removed from the supplied iterable. */
        private boolean foundAndRemovedExactReference(Iterable<E> elements, E target) {
          for (Iterator<E> it = elements.iterator(); it.hasNext(); ) {
            E element = it.next();
            if (element == target) {
              it.remove();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 13:11:08 GMT 2026
    - 34K bytes
    - Click Count (0)
  6. android/guava-tests/test/com/google/common/primitives/ImmutableIntArrayTest.java

        Iterable<Integer> iterable = iterable(Collections.<Integer>emptySet());
        assertThat(ImmutableIntArray.copyOf(iterable)).isSameInstanceAs(ImmutableIntArray.of());
      }
    
      public void testCopyOf_iterable_notCollection_nonempty() {
        List<Integer> list = Arrays.asList(0, 1, 3);
        ImmutableIntArray iia = ImmutableIntArray.copyOf(iterable(list));
        list.set(2, 2);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 20.2K bytes
    - Click Count (0)
  7. guava-testlib/src/com/google/common/collect/testing/DerivedTestIteratorGenerator.java

    import java.util.Iterator;
    
    /**
     * Adapts a test iterable generator to give a TestIteratorGenerator.
     *
     * @author George van den Driessche
     */
    @GwtCompatible
    public final class DerivedTestIteratorGenerator<E>
        implements TestIteratorGenerator<E>, DerivedGenerator {
      private final TestSubjectGenerator<? extends Iterable<E>> collectionGenerator;
    
      public DerivedTestIteratorGenerator(
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Sep 15 13:47:32 GMT 2016
    - 1.4K bytes
    - Click Count (0)
  8. android/guava/src/com/google/common/collect/ImmutableSetMultimap.java

         * @since 19.0
         */
        @CanIgnoreReturnValue
        @Override
        public Builder<K, V> putAll(Iterable<? extends Entry<? extends K, ? extends V>> entries) {
          super.putAll(entries);
          return this;
        }
    
        @CanIgnoreReturnValue
        @Override
        public Builder<K, V> putAll(K key, Iterable<? extends V> values) {
          super.putAll(key, values);
          return this;
        }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Feb 19 22:57:35 GMT 2026
    - 26.3K bytes
    - Click Count (0)
  9. guava-tests/test/com/google/common/primitives/ImmutableLongArrayTest.java

        Iterable<Long> iterable = iterable(Collections.<Long>emptySet());
        assertThat(ImmutableLongArray.copyOf(iterable)).isSameInstanceAs(ImmutableLongArray.of());
      }
    
      public void testCopyOf_iterable_notCollection_nonempty() {
        List<Long> list = Arrays.asList(0L, 1L, 3L);
        ImmutableLongArray iia = ImmutableLongArray.copyOf(iterable(list));
        list.set(2, 2L);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Dec 12 14:49:24 GMT 2025
    - 20.9K bytes
    - Click Count (0)
  10. android/guava-tests/test/com/google/common/reflect/AbstractInvocationHandlerTest.java

        return Reflection.newProxy(List.class, new DelegatingInvocationHandlerWithEquals(delegate));
      }
    
      @SuppressWarnings("unchecked") // proxy of Iterable<String>
      private static Iterable<String> newDelegatingIterableWithEquals(Iterable<String> delegate) {
        return Reflection.newProxy(Iterable.class, new DelegatingInvocationHandlerWithEquals(delegate));
      }
    
      @SuppressWarnings("unchecked") // proxy of List<String>
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 5.8K bytes
    - Click Count (0)
Back to Top