streamsupport Icon

streamsupport

Backport of Java 8 java.util.stream API to Java 6/7 and Android

Add a Review
13 Downloads (This Week)
Last Update:
Download streamsupport-1.2.1.jar
Browse All Files

Description

streamsupport is a backport of the Java 8 java.util.function (functional interfaces) and java.util.stream (streams) API for users of Java 6 or 7 supplemented with selected additions from java.util.concurrent which didn't exist back in Java 6.

Due to the lack of default interface methods and static interface methods in pre-Java 8 the API had to be slightly adjusted in these areas but still covers the full functionality scope of Java 8. In detail, static and default interface methods have been moved to companion classes in the same package that bear the identical name as the interface but with an "s" appended (e.g. Comparator -> Comparators).

For ease of use, the default methods for most of the functional interfaces were NOT retained as abstract methods in the redefined interfaces (keeping them single method interfaces) - the missing default (and static) methods can always be found in the corresponding companion class.

Want also lambdas? https://github.com/orfjackal/retrolambda

streamsupport Web Site

Categories

Libraries

Features

  • Java 8 Streams library backport
  • Java 8 CompletableFuture backport
  • Java 8 Parallel array operations backport
  • Java 8 Functional interfaces backport
  • Further java.util.concurrent enhancements from Java 7/8 backported to Java 6
  • Includes miscellaneous Java 8 goodies (Optional, StringJoiner, ...)
  • Supports Android

KEEP ME UPDATED

Write a Review

User Reviews

Be the first to post a review of streamsupport!

Additional Project Details

Intended Audience

Developers, Architects

Programming Language

Java

Registered

2014-05-10
Screenshots can attract more users to your project.
Features can attract more users to your project.

Icons must be PNG, GIF, or JPEG and less than 1 MiB in size. They will be displayed as 48x48 images.