Search Options

Results per page
Sort
Preferred Languages
Advance

Results 191 - 200 of 370 for Iterables (0.04 sec)

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

      @Override
      public boolean put(@ParametricNullness K key, @ParametricNullness V value) {
        return get(key).add(value);
      }
    
      @CanIgnoreReturnValue
      @Override
      public boolean putAll(@ParametricNullness K key, Iterable<? extends V> values) {
        checkNotNull(values);
        // make sure we only call values.iterator() once
        // and we only call get(key) if values is nonempty
        if (values instanceof Collection) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/features/FeatureUtil.java

      /**
       * Find all the tester annotations declared on a tester class or method.
       *
       * @param classOrMethod a class or method whose tester annotations to find
       * @return an iterable sequence of tester annotations on the class
       */
      public static Iterable<Annotation> getTesterAnnotations(AnnotatedElement classOrMethod) {
        synchronized (annotationCache) {
          List<Annotation> annotations = annotationCache.get(classOrMethod);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 14:50:24 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/hash/Funnels.java

        }
      }
    
      /**
       * Returns a funnel that processes an {@code Iterable} by funneling its elements in iteration
       * order with the specified funnel. No separators are added between the elements.
       *
       * @since 15.0
       */
      public static <E extends @Nullable Object> Funnel<Iterable<? extends E>> sequentialFunnel(
          Funnel<E> elementFunnel) {
        return new SequentialFunnel<>(elementFunnel);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/testing/CollectorTester.java

        SEQUENTIAL {
          @Override
          final <T extends @Nullable Object, A extends @Nullable Object, R extends @Nullable Object>
              A result(Collector<T, A, R> collector, Iterable<T> inputs) {
            A accum = collector.supplier().get();
            for (T input : inputs) {
              collector.accumulator().accept(accum, input);
            }
            return accum;
          }
        },
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu May 15 21:47:56 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  5. guava/src/com/google/common/hash/Funnels.java

        }
      }
    
      /**
       * Returns a funnel that processes an {@code Iterable} by funneling its elements in iteration
       * order with the specified funnel. No separators are added between the elements.
       *
       * @since 15.0
       */
      public static <E extends @Nullable Object> Funnel<Iterable<? extends E>> sequentialFunnel(
          Funnel<E> elementFunnel) {
        return new SequentialFunnel<>(elementFunnel);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/TopKSelector.java

     * Comparators#least(int)} to {@link Stream#collect(java.util.stream.Collector)}. If it is available
     * as an {@link Iterable} or {@link Iterator}, prefer {@link Ordering#leastOf(Iterable, int)}.
     *
     * <p>This uses the same efficient implementation as {@link Ordering#leastOf(Iterable, int)},
     * offering expected O(n + k log k) performance (worst case O(n log k)) for n calls to {@link
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 31 13:15:26 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapReplaceValuesTester.java

    import com.google.common.collect.testing.features.MapFeature;
    import java.util.ArrayList;
    import java.util.Collection;
    import java.util.List;
    import org.junit.Ignore;
    
    /**
     * Tests for {@link Multimap#replaceValues(Object, Iterable)}.
     *
     * @author Louis Wasserman
     */
    @GwtCompatible
    @Ignore("test runners must not instantiate and run this directly, only via suites we build")
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Apr 12 15:07:59 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  8. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableCollection.java

          checkNotNull(elements); // for GWT
          for (E element : elements) {
            add(checkNotNull(element));
          }
          return this;
        }
    
        @CanIgnoreReturnValue
        public Builder<E> addAll(Iterable<? extends E> elements) {
          checkNotNull(elements); // for GWT
          for (E element : elements) {
            add(checkNotNull(element));
          }
          return this;
        }
    
        @CanIgnoreReturnValue
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Aug 06 18:32:41 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/google/MultisetTestSuiteBuilder.java

          return ((Multiset<E>) gen.create(duplicated)).elementSet();
        }
    
        @Override
        public E[] createArray(int length) {
          return gen.createArray(length);
        }
    
        @Override
        public Iterable<E> order(List<E> insertionOrder) {
          return gen.order(new ArrayList<E>(new LinkedHashSet<E>(insertionOrder)));
        }
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 10.5K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/IteratorTester.java

       */
      protected IteratorTester(
          int steps,
          Iterable<? extends IteratorFeature> features,
          Iterable<E> expectedElements,
          KnownOrder knownOrder) {
        super(steps, Collections.<E>singleton(null), features, expectedElements, knownOrder, 0);
      }
    
      @Override
      protected final Iterable<Stimulus<E, Iterator<E>>> getStimulusValues() {
        return iteratorStimuli();
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 4.3K bytes
    - Viewed (0)
Back to top