cn.tangjiabao.halodb.utils.map.MyHashMap Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of haloDb Show documentation
Show all versions of haloDb Show documentation
Orm whitch The highest development efficiency and Efficiency is the fastest
package cn.tangjiabao.halodb.utils.map;
import java.util.Map;
/**
*支持链式调用的HashMap
* @author [email protected]
* @date 2015-6-14 下午10:38:53
*/
public class MyHashMap extends HashMap implements Map{
/**
* @Fields serialVersionUID : TODO
*/
private static final long serialVersionUID = 198382668771840146L;
public MyHashMap() {
}
public MyHashMap(Map map) {
if (null == map) {
map = new MyHashMap();
}
for (Entry entry : map.entrySet()) {
this.set(entry.getKey(), entry.getValue());
}
}
public MyHashMap set(String key, Object value) {
super.put(key, value);
return this;
}
public MyHashMap put(String key, Object value) {
return this.set(key, value);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy