me.dhf.dict.chain.GlobalSelectProcessor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dhf-dict Show documentation
Show all versions of dhf-dict Show documentation
Generate global dictionary JSON file and map for calling in the previous section or view
The newest version!
package me.dhf.dict.chain;
import java.util.LinkedHashMap;
import java.util.Map;
/**
* 全局 常用的
* @author 邓华锋 http://dhf.ink
*
*/
public class GlobalSelectProcessor implements SelectProcessor {
public static Map> dictSelectMap = new LinkedHashMap>();
Map dictMap = new LinkedHashMap();
@Override
public void process(String value, String text) {
dictMap.put(value, text);
}
@Override
public void put(String key) {
dictSelectMap.put(key, dictMap);
dictMap = new LinkedHashMap();
}
@Override
public void putGlobalDict(Map globalDictVal) {
globalDictVal.put("globalSelect",dictSelectMap);
}
}