![](https://i.bmp.ovh/imgs/2020/04/bb067342d2f2ee34.png)
两个都是 Key,再也不用快照版了!!!!
public Header addAll(Map<String, String> map) {
if (null != map) {
for (Map.Entry<String, String> en : map.entrySet()) {
if (en.getValue() != null) // 如果值不是String,就立马报错咯
this.items.put(en.getKey(), en.getKey());
}
}
return this;
}