Ad

pcollections: Persistent Java Collections Library

PCollections provides persistent and immutable collections for Java, offering efficient producers and interoperability with Java Collections.
Screenshot of hrldcpr/pcollections homepage

PCollections provides a persistent and immutable alternative to the Java Collections Framework. It offers efficient, thread-safe, generic, immutable, and persistent implementations of stacks, maps, vectors, sets, and bags. PCollections achieves this through efficient producers, an advantage over Java's unmodifiable collections.

PCollections offers significant performance improvements over Java's Collections.unmodifiableCollection() due to efficient producer methods. It provides a comprehensive suite of immutable collections mirroring the Java Collections Framework, and boasts excellent interoperability with standard Java collections. The library is well-documented and actively maintained with a clear versioning scheme.

  • Interoperability: Every PCollection is a java.util.Collection, making integration seamless.
  • Persistence: Offers efficient producer methods for creating new collections without copying data.
  • Comprehensive Coverage: Includes implementations for stacks, maps, vectors, sets, and bags.
  • Performance: Generally offers better performance than Collections.unmodifiableCollection for modifications.
  • Well-Documented: Provides clear Javadoc and examples for easy understanding and use.

PCollections is a mature library with a stable API, regular releases, and active maintenance. It has been available for several years and has a strong presence in the Maven Central repository. The codebase is well-structured, and there's good documentation.

Developers seeking persistent and immutable data structures in Java will find PCollections valuable. It's suitable for scenarios requiring efficient data manipulation, concurrency control, and improved performance compared to mutable collections. It provides a robust alternative to standard Java collections, especially when efficiency and immutability are critical.

Languages:
Summarize:
Share:
Stars
784
Forks
83
Issues
21
Created
12 years ago
Commit
1 year ago
License
OTHER
Archived
No
Updated 16 days ago

Similar Repositories