Streams Flashcards
Given method: map
Intermediate/Terminal
Short-circuit: Y/N
Parameter list?
Intermediate
N
Function< ?super T>,< ? extends R>
Given method: filter
Intermediate/Terminal
Short-circuit: Y/N
Parameter list?
Intermediate
N
Predicate < ? super T>
Given method: flatMap
Intermediate/Terminal
Short-circuit: Y/N
Parameter list?
Intermediate
N
Function super T, ? extends Stream extends R»
Given method: peek
Intermediate/Terminal
Short-circuit: Y/N
Parameter list?
Intermediate
N
Consumer super T>
Given method: distinct
Intermediate/Terminal
Short-circuit: Y/N
Parameter list?
Intermediate
N
none
Given method: sorted
Intermediate/Terminal
Short-circuit: Y/N
Parameter list?
Intermediate
N
none
Given method: dropWhile
Intermediate/Terminal
Short-circuit: Y/N
Parameter list?
Intermediate
N
Predicate super T>
Given method: skip
Intermediate/Terminal
Short-circuit: Y/N
Parameter list?
Intermediate
N
long
Given method: limit
Intermediate/Terminal
Short-circuit: Y/N
Parameter list?
Intermediate
Y
long
Given method: takeWhile
Intermediate/Terminal
Short-circuit: Y/N
Parameter list?
Intermediate
Y
Predicate super T>
Given method: forEach
Intermediate/Terminal
Short-circuit: Y/N
Parameter list?
Terminal
N
Consumer super T>
Given method: forEachOrdered
Intermediate/Terminal
Short-circuit: Y/N
Parameter list?
Terminal
N
Consumer super T>
Given method: count
Intermediate/Terminal
Short-circuit: Y/N
Parameter list?
Terminal
N
long count()
Given method: min
Intermediate/Terminal
Short-circuit: Y/N
Parameter list?
Terminal
N
Comparator< ?super T>
Given method: max
Intermediate/Terminal
Short-circuit: Y/N
Parameter list?
Terminal
N
Optional< T> max (Comparator< ?super T>)
Given IntStream method: sum
Intermediate/Terminal
Short-circuit: Y/N
Parameter list?
Terminal
N
int sum()
Given method: average
Intermediate/Terminal
Short-circuit: Y/N
Parameter list?
Terminal
N
none
Given method: collect
Intermediate/Terminal
Short-circuit: Y/N
Parameter list?
Terminal
N
Supplier, BiConsumer, BiConsumer
Given method: reduce
Intermediate/Terminal
Short-circuit: Y/N
Parameter list?
Terminal
N
Optional< T> reduce(BinaryOperator< T> accumulator)
Given method: allMatch
Intermediate/Terminal
Short-circuit: Y/N
Parameter list?
Terminal
Y
boolean allMatch (Predicate< ?super T>
Given method: anyMatch
Intermediate/Terminal
Short-circuit: Y/N
Parameter list?
Terminal
Y
Predicate< ?super T>
Given method: noneMatch
Intermediate/Terminal
Short-circuit: Y/N
Parameter list?
Terminal
Y
Predicate< ?super T>
Given method: findAny
Intermediate/Terminal
Short-circuit: Y/N
Parameter list?
Terminal
Y
none
Given method: findFirst
Intermediate/Terminal
Short-circuit: Y/N
Parameter list?
Terminal
Y
none
interface Predicate
What is the abstract method to implement?
boolean test(T t)
Interface Predicate
What are the default methods?
Predicate and(Predicate)
Predicate negate()
Predicate or(Predicate)
Interface Predicate
What are the static methods?
Predicate isEqual(Object targetRef)
Predicate not (Predicate< ?super T>)
Interface Function
What is the abstract method to implement?
R apply(T t)
Interface Function
What are the default methods?
Function andThen(Function super R,? extends V> after)
Function compose(Function super V,? extends T> before)
Interface Function
What are the static methods?
Function identity()
Interface UnaryOperator
Which functional interface does this extend from?
Interface Function
Interface UnaryOperator
What are the static methods?
UnaryOperator identity()
Interfaces Consumer
What is the abstract method to implement?
accept (T t)
Interfaces Consumer
What are the default methods?
Consumer andThen (Consumer< ?superT> t)
Interface Supplier
What is the abstract method to implement?
T get()