Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 162 for iterable (0.26 sec)

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

       *
       * @param iterable the iterable to copy
       * @return a newly-allocated array into which all the elements of the iterable have been copied
       */
      static @Nullable Object[] toArray(Iterable<?> iterable) {
        return castOrCopyToCollection(iterable).toArray();
      }
    
      /**
       * Converts an iterable into a collection. If the iterable is already a collection, it is
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 24 19:38:27 GMT 2024
    - 42.8K bytes
    - Viewed (0)
  2. 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();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 46K bytes
    - Viewed (0)
  3. 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();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 47.5K bytes
    - Viewed (0)
  4. 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")
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 3.7K bytes
    - Viewed (0)
  5. 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;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 16K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/Ordering.java

      // Ordering<Iterable<String>> o =
      //     Ordering.<String>natural().lexicographical();
      public <S extends T> Ordering<Iterable<S>> lexicographical() {
        /*
         * Note that technically the returned ordering should be capable of
         * handling not just {@code Iterable<S>} instances, but also any {@code
         * Iterable<? extends S>}. However, the need for this comes up so rarely
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 24 19:38:27 GMT 2024
    - 39.4K bytes
    - Viewed (0)
  7. 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
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 4.2K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/core/collection/IndexedIterator.java

         *
         * @param <T>
         *            {@link Iterable}の要素型
         * @param iterable
         *            {@link Iterable}。{@literal null}であってはいけません
         * @return {@link IndexedIterator}をラップした{@link Iterable}
         */
        public static <T> Iterable<Indexed<T>> indexed(final Iterable<T> iterable) {
            assertArgumentNotNull("iterable", iterable);
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 3.7K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/Collections2.java

       *     original iterable.
       * @throws NullPointerException if the specified iterable is null or has any null elements.
       * @since 12.0
       */
      public static <E extends Comparable<? super E>> Collection<List<E>> orderedPermutations(
          Iterable<E> elements) {
        return orderedPermutations(elements, Ordering.natural());
      }
    
      /**
       * Returns a {@link Collection} of all the permutations of the specified {@link Iterable} using
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 22.8K bytes
    - Viewed (0)
  10. 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));
        }
    
        /**
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 3.8K bytes
    - Viewed (0)
Back to top