I\'ve read this post here. But still I cannot run code containing Java 8 Stream API features like the following on minSdkVersion < 24.
List new
Another solution I like to use is to statically use Kotlin's extensions over Collections from Java code, if the project supports both of course:
List newCars = CollectionsKt.filter(cars, s -> s.getColor().equals("red"));
Same for .map, .reduce, .first, ...etc
.map
.reduce
.first