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

com.fastchar.extjs.core.FastExtLayerCache Maven / Gradle / Ivy

Go to download

FastChar-ExtJs is a Java Web framework that uses extjs libraries.Quickly build a background management system

There is a newer version: 2.2.2
Show newest version
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