com.manymobi.esdsl.parser.AgentMap Maven / Gradle / Ivy
package com.manymobi.esdsl.parser;
/**
* @author 梁建军
* 创建日期: 2018/11/5
* 创建时间: 15:06
* @version 1.0
* @since 1.0
* 代理子类,对这个类数据进行修改,不影响原始的
*/
public class AgentMap extends ParamMapImpl implements ParamMap {
private final ParamMap kvMap;
public AgentMap(ParamMap kvMap) {
super(kvMap.getJsonHandler(), kvMap.getVariableHandler());
this.kvMap = kvMap;
}
@Override
public V get(Object key) {
V v = super.get(key);
if (v != null) {
return v;
}
return kvMap.get(key);
}
}