Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 209 for iterables (0.05 seconds)

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

  1. guava/src/com/google/common/collect/Iterables.java

       * this method returns {@code true} if {@code iterable1} and {@code iterable2} contain the same
       * number of elements and every element of {@code iterable1} is equal to the corresponding element
       * of {@code iterable2}.
       */
      public static boolean elementsEqual(Iterable<?> iterable1, Iterable<?> iterable2) {
        if (iterable1 instanceof Collection && iterable2 instanceof Collection) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Mar 08 16:16:42 GMT 2026
    - 43.6K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/collect/Iterables.java

     */
    @GwtCompatible
    public final class Iterables {
      private Iterables() {}
    
      /** Returns an unmodifiable view of {@code iterable}. */
      public static <T extends @Nullable Object> Iterable<T> unmodifiableIterable(
          Iterable<? extends T> iterable) {
        checkNotNull(iterable);
        if (iterable instanceof UnmodifiableIterable || iterable instanceof ImmutableCollection) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Sep 16 18:35:28 GMT 2025
    - 43.8K bytes
    - Click Count (0)
  3. guava-tests/test/com/google/common/collect/IterablesTest.java

      }
    
      private void testGetOnAbc(Iterable<String> iterable) {
        try {
          Iterables.get(iterable, -1);
          fail();
        } catch (IndexOutOfBoundsException expected) {
        }
        assertThat(Iterables.get(iterable, 0)).isEqualTo("a");
        assertThat(Iterables.get(iterable, 1)).isEqualTo("b");
        assertThat(Iterables.get(iterable, 2)).isEqualTo("c");
        try {
          Iterables.get(iterable, 3);
          fail();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 47.5K bytes
    - Click Count (0)
  4. guava/src/com/google/common/collect/FluentIterable.java

          Iterable<? extends T> a,
          Iterable<? extends T> b,
          Iterable<? extends T> c,
          Iterable<? extends T> d) {
        return concatNoDefensiveCopy(a, b, c, d);
      }
    
      /**
       * Returns a fluent iterable that combines several iterables. The returned iterable has an
       * iterator that traverses the elements of each iterable in {@code inputs}. The input iterators
       * are not polled until necessary.
       *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Apr 02 14:49:41 GMT 2026
    - 34.7K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/collect/FluentIterable.java

          Iterable<? extends T> a,
          Iterable<? extends T> b,
          Iterable<? extends T> c,
          Iterable<? extends T> d) {
        return concatNoDefensiveCopy(a, b, c, d);
      }
    
      /**
       * Returns a fluent iterable that combines several iterables. The returned iterable has an
       * iterator that traverses the elements of each iterable in {@code inputs}. The input iterators
       * are not polled until necessary.
       *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Apr 02 14:49:41 GMT 2026
    - 34.7K bytes
    - Click Count (0)
  6. guava/src/com/google/common/base/Equivalence.java

      }
    
      /**
       * Returns an equivalence over iterables based on the equivalence of their elements. More
       * specifically, two iterables are considered equivalent if they both contain the same number of
       * elements, and each pair of corresponding elements is equivalent according to {@code this}. Null
       * iterables are equivalent to one another.
       *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Jul 10 01:47:55 GMT 2025
    - 15K bytes
    - Click Count (0)
  7. android/guava/src/com/google/common/collect/ForwardingNavigableMap.java

       * #entrySet}. If you override {@code entrySet}, you may wish to override {@code firstEntry} to
       * forward to this implementation.
       */
      protected @Nullable Entry<K, V> standardFirstEntry() {
        return Iterables.<@Nullable Entry<K, V>>getFirst(entrySet(), null);
      }
    
      /**
       * A sensible definition of {@link #firstKey} in terms of {@code firstEntry}. If you override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 14.1K bytes
    - Click Count (0)
  8. guava/src/com/google/common/collect/ForwardingNavigableMap.java

       * #entrySet}. If you override {@code entrySet}, you may wish to override {@code firstEntry} to
       * forward to this implementation.
       */
      protected @Nullable Entry<K, V> standardFirstEntry() {
        return Iterables.<@Nullable Entry<K, V>>getFirst(entrySet(), null);
      }
    
      /**
       * A sensible definition of {@link #firstKey} in terms of {@code firstEntry}. If you override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 14.3K bytes
    - Click Count (0)
  9. android/guava/src/com/google/common/collect/Collections2.java

       * swapping them.
       *
       * <p>An empty iterable has only one permutation, which is an empty list.
       *
       * @param elements the original iterable whose elements have to be permuted.
       * @param comparator a comparator for the iterable's elements.
       * @return an immutable {@link Collection} containing all the different permutations of the
       *     original iterable.
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Aug 09 01:14:59 GMT 2025
    - 22.6K bytes
    - Click Count (0)
  10. android/guava/src/com/google/common/collect/Lists.java

       * Creates a <i>mutable</i> {@code ArrayList} instance containing the given elements; a very thin
       * shortcut for creating an empty list then calling {@link Iterables#addAll}.
       *
       * <p><b>Note:</b> if mutability is not required and the elements are non-null, use {@link
       * ImmutableList#copyOf(Iterable)} instead. (Or, change {@code elements} to be a {@link
       * FluentIterable} and call {@code elements.toList()}.)
       *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 16:38:09 GMT 2026
    - 42.1K bytes
    - Click Count (0)
Back to Top