Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Guava / providing functional collection-type implementations [closed]

Does someone know if Guava or Java8 in the future will provide persistent collection-implementations inspired by more functional implementations as for instance in Clojure or Scala (providing snapshots, efficient modifications due to sharing of tree-structures and so on)?

like image 850
Johannes Avatar asked Apr 09 '12 20:04

Johannes


2 Answers

With regards to Guava, there is a discussion on the project's discussion group here, which ends with the project lead (Kevin Bourrillion) stating his opinion that Guava would not be the correct library for persistent collections.

I don't believe there's anything like this scheduled for Java 8. A description of the plan for Java 8 here, which states the main features are Project Jigsaw, and Lambda. There will be other inclusions, but no mention of persistent collections.

like image 191
Grundlefleck Avatar answered Nov 05 '22 21:11

Grundlefleck


Check out PCollections: http://code.google.com/p/pcollections/

I expect it's the closest to what you're looking for.

like image 2
daveb Avatar answered Nov 05 '22 21:11

daveb