Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 431 - 440 of 623 for iterables (0.17 seconds)

  1. guava-testlib/test/com/google/common/collect/testing/HelpersTest.java

        list.add("a");
        assertThrows(AssertionFailedError.class, () -> assertEmpty(list));
        assertThrows(
            AssertionFailedError.class,
            () ->
                assertEmpty(
                    new Iterable<String>() {
                      @Override
                      public Iterator<String> iterator() {
                        return singleton("a").iterator();
                      }
                    }));
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 09 19:16:24 GMT 2026
    - 4.4K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/cache/ForwardingLoadingCache.java

      @Override
      public V getUnchecked(K key) {
        return delegate().getUnchecked(key);
      }
    
      @CanIgnoreReturnValue // TODO(b/27479612): consider removing this
      @Override
      public ImmutableMap<K, V> getAll(Iterable<? extends K> keys) throws ExecutionException {
        return delegate().getAll(keys);
      }
    
      @Override
      public V apply(K key) {
        return delegate().apply(key);
      }
    
      @GwtIncompatible
      @J2ktIncompatible
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 03 12:40:22 GMT 2026
    - 3K bytes
    - Click Count (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/google/SortedMultisetTestSuiteBuilder.java

                  public SortedMultiset<E> create(Object... entries) {
                    return ((SortedMultiset<E>) super.create(entries)).descendingMultiset();
                  }
    
                  @Override
                  public Iterable<E> order(List<E> insertionOrder) {
                    return ImmutableList.copyOf(super.order(insertionOrder)).reverse();
                  }
                })
            .named(parentBuilder.getName() + " descending")
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 08 18:35:13 GMT 2025
    - 11.9K bytes
    - Click Count (0)
  4. guava/src/com/google/common/collect/Streams.java

      /**
       * Returns a sequential {@link Stream} of the contents of {@code iterable}, delegating to {@link
       * Collection#stream} if possible.
       */
      public static <T extends @Nullable Object> Stream<T> stream(Iterable<T> iterable) {
        return (iterable instanceof Collection)
            ? ((Collection<T>) iterable).stream()
            : StreamSupport.stream(iterable.spliterator(), false);
      }
    
      /**
       * Returns {@link Collection#stream}.
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 19:19:10 GMT 2026
    - 36.4K bytes
    - Click Count (0)
  5. guava/src/com/google/common/collect/ImmutableMultiset.java

         *
         * @param elements the {@code Iterable} to add to the {@code ImmutableMultiset}
         * @return this {@code Builder} object
         * @throws NullPointerException if {@code elements} is null or contains a null element
         */
        @CanIgnoreReturnValue
        @Override
        public Builder<E> addAll(Iterable<? extends E> elements) {
          if (elements instanceof Multiset) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 22 21:07:18 GMT 2025
    - 20.6K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/collect/ListMultimap.java

       * the {@link Multimap} interface.
       */
      @CanIgnoreReturnValue
      @Override
      List<V> replaceValues(@ParametricNullness K key, Iterable<? extends V> values);
    
      /**
       * {@inheritDoc}
       *
       * <p><b>Note:</b> The returned map's values are guaranteed to be of type {@link List}. To obtain
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 3.4K bytes
    - Click Count (0)
  7. guava/src/com/google/common/collect/ListMultimap.java

       * the {@link Multimap} interface.
       */
      @CanIgnoreReturnValue
      @Override
      List<V> replaceValues(@ParametricNullness K key, Iterable<? extends V> values);
    
      /**
       * {@inheritDoc}
       *
       * <p><b>Note:</b> The returned map's values are guaranteed to be of type {@link List}. To obtain
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 3.4K bytes
    - Click Count (0)
  8. android/guava-tests/test/com/google/common/collect/SingletonImmutableTableTest.java

      }
    
      public void testSize() {
        assertEquals(1, testTable.size());
      }
    
      public void testValues() {
        assertThat(testTable.values()).contains("blah");
      }
    
      @Override
      Iterable<ImmutableTable<Character, Integer, String>> getTestInstances() {
        return ImmutableSet.of(testTable);
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 4.1K bytes
    - Click Count (0)
  9. android/guava-testlib/test/com/google/common/collect/testing/SafeTreeMapTest.java

                          map.put(entry.getKey(), entry.getValue());
                        }
                        return map;
                      }
    
                      @Override
                      public Iterable<Entry<String, String>> order(
                          List<Entry<String, String>> insertionOrder) {
                        sort(
                            insertionOrder,
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue May 13 17:27:14 GMT 2025
    - 4.4K bytes
    - Click Count (0)
  10. guava-testlib/test/com/google/common/collect/testing/SafeTreeMapTest.java

                          map.put(entry.getKey(), entry.getValue());
                        }
                        return map;
                      }
    
                      @Override
                      public Iterable<Entry<String, String>> order(
                          List<Entry<String, String>> insertionOrder) {
                        sort(
                            insertionOrder,
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue May 13 17:27:14 GMT 2025
    - 4.4K bytes
    - Click Count (0)
Back to Top