简体   繁体   中英

java collection backed up by multiple collections

I have two collections: coll1 and coll2 . I need a collection coll which is the union of the two, but I don't want to allocate a new collection. I simply what coll to represent a view of the two collection, and to forward calls to them.

Is there a library which offer this?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM