Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 453 for Iterable$ (0.14 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/google/DerivedGoogleCollectionGenerators.java

          return generator.create(elements);
        }
    
        @Override
        public Entry<K, V>[] createArray(int length) {
          return generator.createArray(length);
        }
    
        @Override
        public Iterable<Entry<K, V>> order(List<Entry<K, V>> insertionOrder) {
          return generator.order(insertionOrder);
        }
    
        @SuppressWarnings("unchecked")
        @Override
        public K[] createKeyArray(int length) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/lang/ClassLoaderIterator.java

         * @return {@link ClassLoaderIterator}をラップした{@link Iterable}
         */
        public static Iterable<ClassLoader> iterable(final ClassLoader classLoader) {
            return () -> new ClassLoaderIterator(classLoader);
        }
    
        /**
         * インスタンスを構築します。
         *
         * @param classLoader
         *            クラスローダ。{@literal null}であってはいけません
         */
        public ClassLoaderIterator(final ClassLoader classLoader) {
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/FluentIterable.java

       * advice in {@link #concat(Iterable...)}.
       *
       * @since 20.0
       */
      public static <T extends @Nullable Object> FluentIterable<T> concat(
          Iterable<? extends T> a, Iterable<? extends T> b, Iterable<? extends T> c) {
        return concatNoDefensiveCopy(a, b, c);
      }
    
      /**
       * Returns a fluent iterable that combines four iterables. The returned iterable has an iterator
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 24 13:42:31 UTC 2024
    - 35.7K bytes
    - Viewed (0)
  4. android/guava-tests/benchmark/com/google/common/collect/BinaryTreeTraverserBenchmark.java

        POST_ORDER {
          @Override
          <T> Iterable<T> view(T root, TreeTraverser<T> viewer) {
            return viewer.postOrderTraversal(root);
          }
        },
        BREADTH_FIRST {
          @Override
          <T> Iterable<T> view(T root, TreeTraverser<T> viewer) {
            return viewer.breadthFirstTraversal(root);
          }
        };
    
        abstract <T> Iterable<T> view(T root, TreeTraverser<T> viewer);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 26 19:18:53 UTC 2019
    - 4.9K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/primitives/ImmutableDoubleArrayTest.java

        Iterable<Double> iterable = iterable(Collections.<Double>emptySet());
        assertThat(ImmutableDoubleArray.copyOf(iterable)).isSameInstanceAs(ImmutableDoubleArray.of());
      }
    
      public void testCopyOf_iterable_notCollection_nonempty() {
        List<Double> list = Arrays.asList(0.0, 1.0, 3.0);
        ImmutableDoubleArray iia = ImmutableDoubleArray.copyOf(iterable(list));
        list.set(2, 2.0);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 21.2K 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 47.5K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/FluentIterableTest.java

        Iterable<String> set = newHashSet("a", "b");
        assertFalse(FluentIterable.from(set).contains("c"));
      }
    
      public void testContains_nonNullIterableYes() {
        Iterable<String> set = iterable("a", null, "b");
        assertTrue(FluentIterable.from(set).contains("b"));
      }
    
      public void testContains_nonNullIterableNo() {
        Iterable<String> iterable = iterable("a", "b");
        assertFalse(FluentIterable.from(iterable).contains("c"));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 30.4K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/core/collection/MultiIterator.java

         *
         * @param <E>
         *            要素の型
         * @param iterables
         *            {@link Iterable}の並び。{@literal null}であってはいけません
         * @return {@link MultiIterator}をラップした{@link Iterable}
         */
        public static <E> Iterable<E> iterable(final Iterable<E>... iterables) {
            assertArgumentNotNull("iterables", iterables);
    
            @SuppressWarnings("unchecked")
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/reflect/InvokableTest.java

        private <T> Prepender() {
          this(null, 0);
        }
    
        static <T> Iterable<String> prepend(@NotBlank String first, Iterable<String> tail) {
          return Iterables.concat(ImmutableList.of(first), tail);
        }
    
        Iterable<String> prepend(Iterable<String> tail)
            throws IllegalArgumentException, NullPointerException {
          return Iterables.concat(Collections.nCopies(times, prefix), tail);
        }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 13:00:28 UTC 2024
    - 30.7K bytes
    - Viewed (0)
Back to top