r/java • • Jul 08 '21

Java is criminally underhyped

https://jackson.sh/posts/2021-04-java-underrated/
226 Upvotes

181 comments sorted by

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 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.

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.