Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 370 for Iterables (0.04 sec)

  1. src/main/java/org/codelibs/core/collection/ArrayIterator.java

        protected int index = 0;
    
        /**
         * Returns an {@link Iterable} that wraps the array for use in a for-each statement.
         *
         * @param <T> the type of elements
         * @param items the array of elements to iterate (must not be {@literal null})
         * @return an {@link Iterable} wrapping the array
         */
        public static <T> Iterable<T> iterable(final T... items) {
            assertArgumentNotNull("items", items);
    
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jun 19 09:12:22 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/DerivedTestIteratorGenerator.java

    import java.util.Iterator;
    
    /**
     * Adapts a test iterable generator to give a TestIteratorGenerator.
     *
     * @author George van den Driessche
     */
    @GwtCompatible
    public final class DerivedTestIteratorGenerator<E>
        implements TestIteratorGenerator<E>, DerivedGenerator {
      private final TestSubjectGenerator<? extends Iterable<E>> collectionGenerator;
    
      public DerivedTestIteratorGenerator(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Apr 21 02:27:51 UTC 2017
    - 1.4K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/collection/SingleValueIterator.java

        /**
         * Returns an {@link Iterable} that wraps a {@link SingleValueIterator} for use in a for-each statement.
         *
         * @param <E> the element type
         * @param value the single value returned by the iterator
         * @return an {@link Iterable} wrapping a {@link SingleValueIterator}
         */
        public static <E> Iterable<E> iterable(final E value) {
            return () -> new SingleValueIterator<>(value);
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jun 19 09:12:22 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapPutIterableTester.java

        multimap().putAll(k0(), Collections.<V>emptyList());
        expectUnchanged();
      }
    
      @MapFeature.Require(SUPPORTS_PUT)
      public void testPutAllOnlyCallsIteratorOnce() {
        Iterable<V> iterable =
            new Iterable<V>() {
              private boolean calledIteratorAlready = false;
    
              @Override
              public Iterator<V> iterator() {
                checkState(!calledIteratorAlready);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  5. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSet.java

          default:
            return create(elements);
        }
      }
    
      public static <E> ImmutableSet<E> copyOf(Collection<? extends E> elements) {
        Iterable<? extends E> iterable = elements;
        return copyOf(iterable);
      }
    
      public static <E> ImmutableSet<E> copyOf(Iterable<? extends E> elements) {
        if (elements instanceof ImmutableSet && !(elements instanceof ImmutableSortedSet)) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Aug 06 18:32:41 UTC 2025
    - 8.3K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/IteratorTester.java

       */
      protected IteratorTester(
          int steps,
          Iterable<? extends IteratorFeature> features,
          Iterable<E> expectedElements,
          KnownOrder knownOrder) {
        super(steps, Collections.<E>singleton(null), features, expectedElements, knownOrder, 0);
      }
    
      @Override
      protected final Iterable<Stimulus<E, Iterator<E>>> getStimulusValues() {
        return iteratorStimuli();
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/reflect/TypeTokenSubtypeTest.java

        public Iterable<UseIterable<? extends Iterable<?>>>
            wildcardOfImplicitBoundedIsSubtypeOfWildcardOfExplicitlyBounded(
                List<UseIterable<?>> withImplicitBounds) {
          return isSubtype(withImplicitBounds);
        }
    
        @TestSubtype(suppressGetSupertype = true, suppressGetSubtype = true)
        public Iterable<UseSerializableIterable<? extends Iterable<?>>>
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  8. 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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 6.8K bytes
    - Viewed (2)
  9. guava-tests/test/com/google/common/base/SplitterTest.java

      }
    
      public void testCharacterSimpleSplitWithNoDelimiter() {
        String simple = "a,b,c";
        Iterable<String> letters = Splitter.on('.').split(simple);
        assertThat(letters).containsExactly("a,b,c").inOrder();
      }
    
      public void testCharacterSplitWithDoubleDelimiter() {
        String doubled = "a,,b,c";
        Iterable<String> letters = COMMA_SPLITTER.split(doubled);
        assertThat(letters).containsExactly("a", "", "b", "c").inOrder();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 29.5K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/IteratorsTest.java

        Iterable<String> iterable = asList("a", "b");
        Iterator<String> cycle = Iterators.cycle(iterable);
        cycle.next();
        assertThrows(UnsupportedOperationException.class, () -> cycle.remove());
      }
    
      public void testCycleRemoveAfterHasNext() {
        Iterable<String> iterable = Lists.newArrayList("a");
        Iterator<String> cycle = Iterators.cycle(iterable);
        assertTrue(cycle.hasNext());
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 54.4K bytes
    - Viewed (0)
Back to top