com.vonchange.headb.utils.map.HMyLinkedHashMap Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of headb Show documentation
Show all versions of headb Show documentation
ORM which The highest development efficiency and Efficiency is the fastest
The newest version!
package com.vonchange.headb.utils.map;
import java.util.Map;
/**
*支持链式调用的LinkedHashMap
* @author [email protected]
* @date 2015-6-14 下午10:39:09
*/
public class HMyLinkedHashMap extends HLinkedHashMap implements Map{
/**
* @Fields serialVersionUID : TODO
*/
private static final long serialVersionUID = 3409416404907094871L;
public HMyLinkedHashMap() {
}
public HMyLinkedHashMap(Map map) {
if (null == map) {
map = new HMyHashMap();
}
for (Entry entry : map.entrySet()) {
this.set(entry.getKey(), entry.getValue());
}
}
public HMyLinkedHashMap set(String key, Object value) {
super.put(key, value);
return this;
}
public HMyLinkedHashMap put(String key, Object value) {
return this.set(key, value);
}
}