Back to project page X3n0break.
The source code is released under:
GNU General Public License
If you think the Android project X3n0break listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package org.x3n0m0rph59.breakout; /*from ww w. j ava 2 s. co m*/ import java.util.HashMap; import java.util.Map; public class ResourceMapperDecisionCache { private static ResourceMapperDecisionCache instance = new ResourceMapperDecisionCache(); private Map<String,String> cacheMap = new HashMap<String,String>(); public static ResourceMapperDecisionCache getInstance() { return instance; } private ResourceMapperDecisionCache() { } public String getCachedPath(String filename) { if (cacheMap.containsKey(filename)) return cacheMap.get(filename); else return null; } public void addDecisionToCache(String filename, String path) { cacheMap.put(filename, path); } public void clearCache() { cacheMap.clear(); } }