Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 502 for iterable (0.06 sec)

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

    @GwtCompatible(emulated = true)
    @ElementTypesAreNonnullByDefault
    public final class Iterables {
      private Iterables() {}
    
      /** Returns an unmodifiable view of {@code iterable}. */
      public static <T extends @Nullable Object> Iterable<T> unmodifiableIterable(
          final Iterable<? extends T> iterable) {
        checkNotNull(iterable);
        if (iterable instanceof UnmodifiableIterable || iterable instanceof ImmutableCollection) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Apr 24 19:38:27 UTC 2024
    - 42.8K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/MinimalIterable.java

    public final class MinimalIterable<E extends @Nullable Object> implements Iterable<E> {
      /** Returns an iterable whose iterator returns the given elements in order. */
      public static <E extends @Nullable Object> MinimalIterable<E> of(E... elements) {
        // Make sure to get an unmodifiable iterator
        return new MinimalIterable<>(asList(elements).iterator());
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/lang/ClassIterator.java

         *
         * @param clazz
         *            クラス。{@literal null}であってはいけません
         * @return {@link ClassIterator}をラップした{@link Iterable}
         */
        public static Iterable<Class<?>> iterable(final Class<?> clazz) {
            return iterable(clazz, true);
        }
    
        /**
         * for each構文で使用するために{@link ClassIterator}をラップした{@link Iterable}を返します。
         *
         * @param clazz
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/io/LineIterator.java

        /**
         * for each構文で使用するために{@link LineIterator}をラップした{@link Iterable}を返します。
         *
         * @param reader
         *            文字列を読み込む{@link Reader}。{@literal null}であってはいけません
         * @return {@link LineIterator}をラップした{@link Iterable}
         */
        public static Iterable<String> iterable(final Reader reader) {
            assertArgumentNotNull("reader", reader);
            return iterable(new BufferedReader(reader));
        }
    
        /**
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  5. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/Result.java

        private final boolean errors;
    
        private final T value;
    
        private final Iterable<? extends ModelProblem> problems;
    
        private Result(boolean errors, T model, Iterable<? extends ModelProblem> problems) {
            this.errors = errors;
            this.value = model;
            this.problems = problems;
        }
    
        public Iterable<? extends ModelProblem> getProblems() {
            return problems;
        }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapPutIterableTester.java

      @MapFeature.Require(SUPPORTS_PUT)
      public void testPutAllEmptyIterableOnAbsentKey() {
        Iterable<V> iterable =
            new Iterable<V>() {
              @Override
              public Iterator<V> iterator() {
                return ImmutableSet.<V>of().iterator();
              }
            };
    
        assertFalse(multimap().putAll(k3(), iterable));
        expectUnchanged();
      }
    
      @CollectionSize.Require(absent = ZERO)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  7. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Apr 21 02:27:51 UTC 2017
    - 1.4K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/core/collection/ArrayIterator.java

        protected int index = 0;
    
        /**
         * for each構文で使用するために配列をラップした{@link Iterable}を返します。
         *
         * @param <T>
         *            列挙する要素の型
         * @param items
         *            イテレートする要素の並び。{@literal null}であってはいけません
         * @return 配列をラップした{@link Iterable}
         */
        public static <T> Iterable<T> iterable(final T... items) {
            assertArgumentNotNull("items", items);
    
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/core/collection/SingleValueIterator.java

        /**
         * for each構文で使用するために{@link SingleValueIterator}をラップした{@link Iterable}を返します。
         *
         * @param <E>
         *            要素の型
         * @param value
         *            反復子が返す唯一の値
         * @return {@link SingleValueIterator}をラップした{@link Iterable}
         */
        public static <E> Iterable<E> iterable(final E value) {
            return () -> new SingleValueIterator<>(value);
        }
    
        /**
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  10. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 19:12:33 UTC 2024
    - 45K bytes
    - Viewed (0)
Back to top