Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 394 for iterable (0.04 sec)

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

      }
    
      @Override
      public SampleElements<String> sampleValues() {
        return new SampleElements<>("January", "February", "March", "April", "May");
      }
    
      @Override
      public Collection<String> createCollection(Iterable<? extends String> values) {
        return copyToSet(values);
      }
    
      @Override
      public final SetMultimap<String, String> create(Object... entries) {
        @SuppressWarnings("unchecked")
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 14:50:24 UTC 2024
    - 3K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/core/collection/EnumerationIteratorTest.java

     * governing permissions and limitations under the License.
     */
    package org.codelibs.core.collection;
    
    import static org.codelibs.core.collection.EnumerationIterator.iterable;
    import static org.hamcrest.CoreMatchers.is;
    import static org.hamcrest.CoreMatchers.not;
    import static org.junit.Assert.assertThat;
    
    import java.util.Enumeration;
    import java.util.Vector;
    
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/ReverseOrdering.java

      }
    
      @Override
      public <E extends T> E min(Iterator<E> iterator) {
        return forwardOrder.max(iterator);
      }
    
      @Override
      public <E extends T> E min(Iterable<E> iterable) {
        return forwardOrder.max(iterable);
      }
    
      @Override
      public <E extends T> E max(@ParametricNullness E a, @ParametricNullness E b) {
        return forwardOrder.min(a, b);
      }
    
      @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jun 04 13:03:16 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/lang/ClassLoaderIterator.java

         * @return an {@link Iterable} wrapping a {@link ClassLoaderIterator}
         */
        public static Iterable<ClassLoader> iterable(final ClassLoader classLoader) {
            return () -> new ClassLoaderIterator(classLoader);
        }
    
        /**
         * Constructs an instance.
         *
         * @param classLoader the class loader (must not be {@literal null})
         */
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jun 19 09:12:22 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  5. guava/src/com/google/common/base/Predicates.java

      }
    
      private static <T> List<T> defensiveCopy(T... array) {
        return defensiveCopy(Arrays.asList(array));
      }
    
      static <T> List<T> defensiveCopy(Iterable<T> iterable) {
        ArrayList<T> list = new ArrayList<>();
        for (T element : iterable) {
          list.add(checkNotNull(element));
        }
        return list;
      }
    
      private Predicates() {}
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 26.6K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/io/MultiReaderTest.java

        String result = CharStreams.toString(joinedReader);
        assertEquals(testString.length() * 3, result.length());
      }
    
      public void testReady() throws Exception {
        CharSource source = newCharSource("a");
        Iterable<? extends CharSource> list = ImmutableList.of(source, source);
        Reader joinedReader = CharSource.concat(list).openStream();
    
        assertTrue(joinedReader.ready());
        assertEquals('a', joinedReader.read());
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 3.7K bytes
    - Viewed (0)
  7. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableList.java

          Iterable<? extends E> elements) {
        Comparable<?>[] array = Iterables.toArray(elements, new Comparable<?>[0]);
        checkElementsNotNull((Object[]) array);
        Arrays.sort(array);
        return asImmutableList(array);
      }
    
      public static <E> ImmutableList<E> sortedCopyOf(
          Comparator<? super E> comparator, Iterable<? extends E> elements) {
        checkNotNull(comparator);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Aug 06 18:32:41 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  8. 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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 21.5K bytes
    - Viewed (0)
  9. 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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/core/collection/EnumerationIterator.java

        /**
         * Returns an {@link Iterable} that wraps an {@link Enumeration} for use in a for-each statement.
         *
         * @param <T> the element type
         * @param enumeration the enumeration (must not be {@literal null})
         * @return an {@link Iterable} wrapping the enumeration
         */
        public static <T> Iterable<T> iterable(final Enumeration<T> enumeration) {
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jun 19 09:12:22 UTC 2025
    - 2.2K bytes
    - Viewed (0)
Back to top