java streams in Java 7

后端 未结 3 1283
[愿得一人]
[愿得一人] 2020-12-03 09:55

My question may be too broad and probably the answer is a simple NO, but I have to ask.

Is there any equivalent implementation of (Java 8) streams* in Java 7?

<
3条回答
  •  情深已故
    2020-12-03 10:53

    Google's Guava library contains some functional idioms for Java versions 5 to 7:

    https://github.com/google/guava/wiki/FunctionalExplained

    Also, there is this library that you may want to check (I haven't heard of it up until some minutes ago when I performed a Google search :-) )

    http://www.functionaljava.org/

提交回复
热议问题