`

遍历map里面的list

 
阅读更多
    private ArrayList<RstPhoto> retPhotos;
    private ArrayList<Restaurant> restaurants;
Map<ArrayList<RstPhoto>, ArrayList<Restaurant>> map_arrary = (Map<ArrayList<RstPhoto>, ArrayList<Restaurant>>) msg.obj;
Iterator iter = map_arrary.entrySet().iterator(); 
while (iter.hasNext()) { 
	Map.Entry entry = (Map.Entry) iter.next(); 
	retPhotos = (ArrayList<RstPhoto>) entry.getKey(); 
        restaurants = (ArrayList<Restaurant>) entry.getValue(); 
 } 

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics