I know that there are some libraries which allow using Java 8
features such as streams
and lambda expressions
but what I need is to use a library that was developed in Java 8.
To be more precise, there's a method which returns java.util.stream
instance and I need to iterate over this stream. I tried to use retrostreams
library but that re-implements the streams
in a different package called java9.util.stream
which is not the same.
Is there a way that I could use this library in Android API 15
?
Edit: Or is there a way to convert java.util.stream
instance to java9.util.stream
in retrostreams
library?