怪我咯2017-04-18 09:58:54
If the generics are consistent, use the addall() method to add it to a new List. If you need to remove duplicates, use Set’s addall ()
天蓬老师2017-04-18 09:58:54
Write a wrapper collection class and delegate to the corresponding sub-collection as needed.
Usually just inherit AbstractList, and the constructor puts four or more sub-collections in.
迷茫2017-04-18 09:58:54
It is recommended that you go to Google's guava toolkit... There are ready-made ones...