感謝有奉獻精神的人
轉自:http://blog.csdn.net/autofei/article/details/7456221
很實用,分享一下。
簡單版本
複雜版本
參考:
http://initbinder.com/articles/cheat-sheet-for-selecting-maplistset-in-Java.html
http://www.sergiy.ca/guide-to-selecting-appropriate-map-collection-in-java/