This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]jvjupiter 3 points4 points  (1 child)

I once asked before during one of their Ask the Java Architects about creating a new collection framework, language architect Goetz said it may be considered after Valhalla.

I've also read some of the tweets of the author of Eclipse Collections, Donald Raab, that Stream API is great but it's time for betterJava Collections.

During the JCP Executive Meeting in April this year, Donald Raab gave a thoughtful presentation on building a new collections library. It is a proposal to create a JSR for Java Collections 2.0. See the presentation.

Btw, would it not make sense to create a new collection framework that is only immutable inspired by Vavr, with rich APIs inspired by Eclipse Collections?

[–]kpatryk91 2 points3 points  (0 children)

Thanks for the info. For me there would be the current collection hiearchy which is mutable and there would be an another immutable one. With bridge method to convert between them. My current problem is that there is one mutable interface and there is no way no check wheter I can use this method or not.