Possible Duplicate:
Combine multiple Collections into a single logical Collection?
I have a lot of small collections that I would like to access as a whole.
I could e.g. create a new LinkedList
and add all elements to it. But I was thinking, there might be some tool to add complete Collections
without having to re-link every item. I am not speaking about addAll
. The Collections
shall stay seperate, but only from the outside seem to be one.
Any ideas?