Eclipse Collections is a collections framework for Java with optimized data structures and a rich, functional and fluent API.
Eclipse Collections is a comprehensive collections library for Java. The library enables productivity and performance by delivering an expressive and efficient set of APIs and types. The iteration protocol was inspired by the Smalltalk collection framework, and the collections are compatible with the Java Collection Framework types.
Eclipse Collections is compatible with Java 8+. Eclipse Collections is a part of the OpenJDK Quality Outreach program, and it is validated for different versions of the OpenJDK.
List
, Set
, Bag
, Stack
, Map
, Multimap
, BiMap
, Interval
object container typesMutable
, and Immutable
interfaces for each collection type with covariant return types
EC | JDK 5 - 7 | JDK 8 | JDK 9 - 10 | JDK 11 - 14 | JDK 15 - 21 |
---|---|---|---|---|---|
7.x.x | ✓ | ✓ | |||
8.x.x | ✓ | ||||
9.x.x | ✓ | ✓ | ✓ | ||
10.x.x | ✓ | ✓ | ✓ | ||
10.4.0 | ✓ | ✓ | ✓ | ✓ | |
11.x.x | ✓ | ✓ | ✓ | ✓ | |
12.x.x | ✓ | ✓ |
Note: Eclipse Collections 12.x will be compatible with Java 11+. EC 12.0 has not been released as GA yet, but there are a few milestone releases available to test with.
<dependency>
<groupId>org.eclipse.collections</groupId>
<artifactId>eclipse-collections-api</artifactId>
<version>11.1.0</version>
</dependency>
<dependency>
<groupId>org.eclipse.collections</groupId>
<artifactId>eclipse-collections</artifactId>
<version>11.1.0</version>
</dependency>
implementation 'org.eclipse.collections:eclipse-collections-api:11.1.0'
implementation 'org.eclipse.collections:eclipse-collections:11.1.0'
Eclipse software repository location: https://download.eclipse.org/collections/11.1.0/repository
We welcome contributions! We accept contributions via pull requests here in GitHub. Please see How To Contribute to get started.