February 2014
Beginner
1248 pages
62h 25m
English
• You filter elements to produce a stream of intermediate results that match a predicate. IntStream method filter (p. 741) receives an object that implements the IntPredicate functional interface (package java.util.function).
• IntStream method sorted (a lazy operation) orders the elements of the stream into ascending order (by default). All prior intermediate operations in the stream pipeline must be complete so that method sorted knows which elements to sort.
• Method filter a stateless intermediate operation—it does not require any information about other elements in the stream in order to test whether the current element satisfies the predicate.
• Method sorted ...
Read now
Unlock full access