现在的位置: 首页 > 综合 > 正文

set enter

2018年04月28日 ⁄ 综合 ⁄ 共 552字 ⁄ 字号 评论关闭

set

HashMap<String,Class> hashmap = new HashMap<String,Class>();

            Set<String> setkeys = hashmap.keySet();
            for(String setkey : setkeys)
           {
                xs.alias(setkey, hashmap.get(setkey));
            }

 

 

 

enterset

HashMap<String,Class> hashmap = new HashMap<String,Class>();

            Set<Entry<String,Class>> set = hashmap.entrySet();
            Iterator<Entry<String,Class>> it = set.iterator();
            while(it.hasNext())
            {
                Entry<String,Class> en = it.next();
                xs.alias(en.getKey(), en.getValue());
            }

抱歉!评论已关闭.