其他分享
首页 > 其他分享> > 两个map进行比较

两个map进行比较

作者:互联网

private boolean resetCompareSingle(Map<String, Object> current, Map<String, Object> last){
        Iterator<String> iterator = current.keySet().iterator();
        while (iterator.hasNext()){
            String key = (String)iterator.next();
           
            if (!current.get(key).equals(last.get(key))) {
                 return false;
            }
            
        }
    }    

 

标签:map,两个,String,iterator,Map,get,current,key,比较
来源: https://www.cnblogs.com/blue-rain/p/16253586.html