com.fastchar.extjs.core.FastExtLayerCache Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fastchar-extjs Show documentation
Show all versions of fastchar-extjs Show documentation
FastChar-ExtJs is a Java Web framework that uses extjs libraries.Quickly build a background management system
package com.fastchar.extjs.core;
import java.util.HashMap;
import java.util.Map;
public class FastExtLayerCache {
private final Map cacheLayer = new HashMap<>();
private String buildKey(Class> targetClass, Object keyValue) {
return targetClass.getName() + "@" + keyValue;
}
public String getLayer(Class> targetClass, Object keyValue) {
String buildKey = buildKey(targetClass, keyValue);
return cacheLayer.get(buildKey);
}
public void putLayer(Class> targetClass, Object keyValue, String layerValue) {
String buildKey = buildKey(targetClass, keyValue);
cacheLayer.put(buildKey, layerValue);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy