Closed GoogleCodeExporter closed 9 years ago
It would be rather odd for a builder to have a copy constructor or a clone
method. Your
use case is somewhat unusual, and there's a simple workaround.
Instead of passing around ImmutableList.Builders and calling Builder.build(),
your code
can pass around ArrayLists and call ImmutableList.copyOf. Then you can copy
those
ArrayLists whenever necessary.
Original comment by jared.l....@gmail.com
on 10 Aug 2009 at 4:07
Original issue reported on code.google.com by
ankos...@gmail.com
on 10 Aug 2009 at 1:53