}
}
- private String type;
-
/* Number of cached entries */
private int cacheSize = 0;
private HashMap<String, Cache> formatCache = new HashMap<String, Cache>();
private DateFormatCache(int size, DateFormatCache parent) {
- if (parent == null) {
- type = "main";
- } else {
- type = "child";
- }
cacheSize = size;
this.parent = parent;
Cache parentCache = null;
*/
private static final ThreadLocal<DateFormatCache> localDateCache =
new ThreadLocal<DateFormatCache>() {
+ @Override
protected DateFormatCache initialValue() {
return new DateFormatCache(localCacheSize, globalDateCache);
}