Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 172 for iterables (0.07 sec)

  1. 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) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 43.6K bytes
    - Viewed (0)
  2. 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) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 43.3K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/IterablesTest.java

      }
    
      private void testGetOnAbc(Iterable<String> iterable) {
        try {
          Iterables.get(iterable, -1);
          fail();
        } catch (IndexOutOfBoundsException expected) {
        }
        assertEquals("a", Iterables.get(iterable, 0));
        assertEquals("b", Iterables.get(iterable, 1));
        assertEquals("c", Iterables.get(iterable, 2));
        try {
          Iterables.get(iterable, 3);
          fail();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 45.2K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/IterablesTest.java

      }
    
      private void testGetOnAbc(Iterable<String> iterable) {
        try {
          Iterables.get(iterable, -1);
          fail();
        } catch (IndexOutOfBoundsException expected) {
        }
        assertEquals("a", Iterables.get(iterable, 0));
        assertEquals("b", Iterables.get(iterable, 1));
        assertEquals("c", Iterables.get(iterable, 2));
        try {
          Iterables.get(iterable, 3);
          fail();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 46.6K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/math/MathTesting.java

      static final Iterable<Double> INFINITIES =
          Doubles.asList(Double.POSITIVE_INFINITY, Double.NEGATIVE_INFINITY);
      static final Iterable<Double> FINITE_DOUBLE_CANDIDATES;
      static final Iterable<Double> POSITIVE_FINITE_DOUBLE_CANDIDATES;
      static final Iterable<Double> ALL_DOUBLE_CANDIDATES;
      static final Iterable<Double> DOUBLE_CANDIDATES_EXCEPT_NAN;
    
      static {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/graph/TraverserTest.java

        assertEqualCharNodes(result, "bfaecd");
      }
    
      @Test
      public void forGraph_breadthFirst_infinite() {
        Iterable<Integer> result =
            Traverser.forGraph(fixedSuccessors(Iterables.cycle(1, 2, 3))).breadthFirst(0);
        assertThat(Iterables.limit(result, 4)).containsExactly(0, 1, 2, 3).inOrder();
      }
    
      @Test
      public void forGraph_breadthFirst_diamond() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 47.5K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/graph/TraverserTest.java

        assertEqualCharNodes(result, "bfaecd");
      }
    
      @Test
      public void forGraph_breadthFirst_infinite() {
        Iterable<Integer> result =
            Traverser.forGraph(fixedSuccessors(Iterables.cycle(1, 2, 3))).breadthFirst(0);
        assertThat(Iterables.limit(result, 4)).containsExactly(0, 1, 2, 3).inOrder();
      }
    
      @Test
      public void forGraph_breadthFirst_diamond() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 47.5K bytes
    - Viewed (0)
  8. 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.
       *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 34.8K bytes
    - Viewed (0)
  9. 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.
       *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 35.3K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/Queues.java

       * they are returned by the iterable's iterator.
       *
       * @since 12.0
       */
      public static <E> ArrayDeque<E> newArrayDeque(Iterable<? extends E> elements) {
        if (elements instanceof Collection) {
          return new ArrayDeque<>((Collection<? extends E>) elements);
        }
        ArrayDeque<E> deque = new ArrayDeque<>();
        Iterables.addAll(deque, elements);
        return deque;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 18.3K bytes
    - Viewed (0)
Back to top