bobobear / lambdaj

Automatically exported from code.google.com/p/lambdaj
Apache License 2.0
0 stars 0 forks source link

LambdaList is not serializable #53

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Request for enhancement:

I must serialize the lists created by the Lambdaj Collections API. However, a 
LambdaList is not serializable, and it contains two internal lists, which is 
not so nice when serializing the list.

In Guava there is a similar situation: filtered lists still contain the 
original list internally for optimization, the guava filter kicks in when 
iterating over the list, and the filtered list is not serializable. 
But one can use ImmutableList.copyOf to create a new serializable list which 
contains only the filtered data. 

Currently I must create a new List and add the LambdaList to it.

I miss a possibility to achieve this as part of the fluent interface, something 
like copy(List<T> targetList). The clone(List) method doesn't do the trick.

Or can LambdaList be made serializable in the first place?

Best regards
Dietrich

Original issue reported on code.google.com by dietrich...@gmail.com on 30 Nov 2010 at 11:25

GoogleCodeExporter commented 9 years ago
It occured to me to put the lambda list into the constructor of an arraylist. 
This is ok, I'd say. Please close the issue.
Dietrich

Original comment by dietrich...@gmail.com on 30 Nov 2010 at 8:05

GoogleCodeExporter commented 9 years ago
It occured to me to put the lambda list into the constructor of an arraylist. 
This is ok, I'd say. Please close the issue.
Dietrich

Original comment by dietrich...@gmail.com on 30 Nov 2010 at 8:05

GoogleCodeExporter commented 9 years ago
Fixed in release 2.3.2

Original comment by mario.fu...@gmail.com on 17 Dec 2010 at 9:07