Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Collections » Builders for immutable collections (*List).
Builders for immutable collections (*List). [message #1783177] Thu, 08 March 2018 20:20
Steve Harris is currently offline Steve HarrisFriend
Messages: 1
Registered: March 2018
Junior Member
Hi all,
I commonly come across cases where I need to mutably build a large list of items within a single method, then "finalize it" as an immutable list to return.

I'd like to be able to do without having to copy the items like toImmutableList() would when called on the mutable lists. The mutable "builder" form of the thing doesn't have to conform to any specific interfaces other than having an "add" method for my purposes - and it would give up it's reference to the data when building the immutable list. Is there any way of doing this currently, or would such a feature be considered as an enhancement?
Previous Topic:Eclipse Collections p2 update site
Goto Forum:

Current Time: Thu Nov 15 01:47:06 GMT 2018

Powered by FUDForum. Page generated in 0.02188 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top