Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 206 for Streams (0.19 sec)

  1. guava-tests/test/com/google/common/collect/StreamsTest.java

        Stream<String> streamB = Stream.of("b").onClose(closeCountB::incrementAndGet);
        Stream<String> concatenated =
            Stream.<Stream<String>>of(Stream.of("a"), streamB, Stream.empty(), Stream.of("c", "d"))
                .reduce(Stream.empty(), Stream::concat);
        assertThat(concatenated).containsExactly("a", "b", "c", "d").inOrder();
        concatenated.close();
        assertThat(closeCountB.get()).isEqualTo(1);
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 20K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/io/ByteSource.java

      }
    
      /**
       * Concatenates multiple {@link ByteSource} instances into a single source. Streams returned from
       * the source will contain the concatenated data from the streams of the underlying sources.
       *
       * <p>Only one underlying stream will be open at a time. Closing the concatenated stream will
       * close the open underlying stream.
       *
       * @param sources the sources to concatenate
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 17 14:35:11 GMT 2023
    - 26.2K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/io/CharSource.java

      }
    
      /**
       * Concatenates multiple {@link CharSource} instances into a single source. Streams returned from
       * the source will contain the concatenated data from the streams of the underlying sources.
       *
       * <p>Only one underlying stream will be open at a time. Closing the concatenated stream will
       * close the open underlying stream.
       *
       * @param sources the sources to concatenate
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 17 14:35:11 GMT 2023
    - 22.4K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/Iterables.java

       * RandomAccess} support, then this operation is guaranteed to be {@code O(1)}.
       *
       * <p><b>{@code Stream} equivalent:</b> {@link Streams#findLast Streams.findLast(stream).get()}
       *
       * @return the last element of {@code iterable}
       * @throws NoSuchElementException if the iterable is empty
       */
      @ParametricNullness
    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)
  5. android/guava/src/com/google/common/collect/ImmutableSetMultimap.java

       * input element is mapped to a key and a stream of values, each of which are put into the
       * resulting {@code Multimap}, in the encounter order of the stream and the encounter order of the
       * streams of values.
       *
       * <p>Example:
       *
       * <pre>{@code
       * static final ImmutableSetMultimap<Character, Character> FIRST_LETTER_MULTIMAP =
       *     Stream.of("banana", "apple", "carrot", "asparagus", "cherry")
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 23.6K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/Comparators.java

       *
       * <p>For example:
       *
       * <pre>{@code
       * Stream.of("foo", "quux", "banana", "elephant")
       *     .collect(least(2, comparingInt(String::length)))
       * // returns {"foo", "quux"}
       * }</pre>
       *
       * <p>This {@code Collector} uses O(k) memory and takes expected time O(n) (worst-case O(n log
       * k)), as opposed to e.g. {@code Stream.sorted(comparator).limit(k)}, which currently takes O(n
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 10.2K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/FluentIterable.java

       * iterator supports it.
       *
       * <p><b>{@code Stream} equivalent:</b> to concatenate an arbitrary number of streams, use {@code
       * Stream.of(stream1, stream2, ...).flatMap(s -> s)}. If the sources are iterables, use {@code
       * Stream.of(iter1, iter2, ...).flatMap(Streams::stream)}.
       *
       * @throws NullPointerException if any of the provided iterables is {@code null}
       * @since 20.0
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Jan 30 00:14:39 GMT 2024
    - 35.3K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/Ordering.java

     * well.
     *
     * <h3>Java 8+ users</h3>
     *
     * <p>If you are using Java 8+, this class is now obsolete. Most of its functionality is now
     * provided by {@link java.util.stream.Stream Stream} and by {@link Comparator} itself, and the rest
     * can now be found as static methods in our new {@link Comparators} class. See each method below
    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)
  9. guava/src/com/google/common/collect/Iterables.java

       * RandomAccess} support, then this operation is guaranteed to be {@code O(1)}.
       *
       * <p><b>{@code Stream} equivalent:</b> {@link Streams#findLast Streams.findLast(stream).get()}
       *
       * @return the last element of {@code iterable}
       * @throws NoSuchElementException if the iterable is empty
       */
      @ParametricNullness
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 42.5K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/package-info.java

     *   <li>{@link Maps}
     *   <li>{@link MoreCollectors}
     *   <li>{@link Multimaps}
     *   <li>{@link Multisets}
     *   <li>{@link ObjectArrays}
     *   <li>{@link Queues}
     *   <li>{@link Sets}
     *   <li>{@link Streams}
     *   <li>{@link Tables}
     * </ul>
     *
     * <h2>Abstract implementations</h2>
     *
     * <ul>
     *   <li>{@link AbstractIterator}
     *   <li>{@link AbstractSequentialIterator}
     *   <li>{@link UnmodifiableIterator}
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Jul 06 16:29:45 GMT 2023
    - 5K bytes
    - Viewed (0)
Back to top