Skip to content
This repository has been archived by the owner on Feb 25, 2024. It is now read-only.

stefan-zobel/java9-concurrent-backport

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Maven Central javadoc.io

java9-concurrent-backport

java9-concurrent-backport is a backport of the upgraded (JEP 266) Java 9 CompletableFuture API (extended by the new Java 12 CSR JDK-8211010 exception handling methods) for Java 8. In addition, it contains a Java 8 version of the new Java 9 reactive-streams Flow and SubmissionPublisher API (also JEP 266) and of the new Java 9 Collections factory methods from JEP 269 (updated to the Java 14 implementation).

The API is exactly the same as in Java 14 with the exception that it doesn't live in the package java.util(.concurrent) but rather in the package java9.util(.concurrent).

The JEP 269 convenience factory methods for collections are located in companion classes for the corresponding java.util interfaces:

  • java9.util.Lists
  • java9.util.Maps
  • java9.util.Sets

Maven:

<dependency>
    <groupId>net.sourceforge.streamsupport</groupId>
    <artifactId>java9-concurrent-backport</artifactId>
    <version>2.0.5</version>
</dependency>

The minimum runtime requirement is OpenJDK (Oracle) Java 8.

LICENSE

GNU General Public License, version 2, with the Classpath Exception (and CC0 1.0 for JSR-166 derived code)