All Downloads are FREE. Search and download functionalities are using the official Maven repository.

me.dhf.dict.chain.GlobalSelectProcessor Maven / Gradle / Ivy

Go to download

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);
	}
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy