Package java.util.stream


package java.util.stream
  • Class
    Description
    BaseStream<T, S extends BaseStream<T,S>>
    What the object stream and the three primitive ones have in common.
    Collector<T,A,R>
    How Stream.collect(Collector) folds the elements of a stream into a result: a container to start from, a step per element, a way to merge two containers and a last step that turns the container into the result.
    What a collector says about itself.
    The common Collectors: into collections, maps, strings, groups and numbers.
    A sequence of double values to which operations are applied one stage at a time, evaluated lazily, one element at a time, when a terminal operation asks for them.
    A sequence of int values to which operations are applied one stage at a time, evaluated lazily, one element at a time, when a terminal operation asks for them.
    A sequence of long values to which operations are applied one stage at a time, evaluated lazily, one element at a time, when a terminal operation asks for them.
    A stream here is sequential and lazy: each stage pulls one element at a time from the one before it, and only when a terminal operation asks.
    java.util.stream.Stream.Builder: collects elements, then answers them as a stream, once.
    Makes a Stream of a Spliterator: what Collection.stream() does, and how a library turns any Iterable into a stream (StreamSupport.stream(iterable.spliterator(), false)).