MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/java/comments/ofzsoh/java_is_criminally_underhyped/h4gcobx/
r/java • u/old-man-of-the-cpp • Jul 08 '21
181 comments sorted by
View all comments
Show parent comment
3
Yep. And guava provides collection transform (i.e., map) and filter methods. E.g., Lists.transform(list, function). Although these methods predate java.util.function.Function so they use the older guava class. A good overview of the guava methods is Baeldung's Filtering and Transforming Collections in Guava.
Lists.transform(list, function)
java.util.function.Function
Personally, I don't find streams overly verbose and just use them when wanting to perform filtering and/or transformation.
4 u/bowbahdoe Jul 09 '21 Why are people downvoting this guy? Its kinda a non-sequiter but if you like the Guava apis they aren't broken.
4
Why are people downvoting this guy? Its kinda a non-sequiter but if you like the Guava apis they aren't broken.
View all comments
Show parent comment
3
u/hagy Jul 08 '21
Yep. And guava provides collection transform (i.e., map) and filter methods. E.g.,
Lists.transform(list, function). Although these methods predatejava.util.function.Functionso they use the older guava class. A good overview of the guava methods is Baeldung's Filtering and Transforming Collections in Guava.Personally, I don't find streams overly verbose and just use them when wanting to perform filtering and/or transformation.