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

com.jpattern.service.cache.statistics.NullCacheStatistics Maven / Gradle / Ivy

There is a newer version: 3.6.2
Show newest version
package com.jpattern.service.cache.statistics;

import java.util.HashMap;
import java.util.Map;

/**
 * 
 * @author Francesco Cina'
 *
 * 5 May 2011
 */
public class NullCacheStatistics implements ICacheStatistics {

	private static final long serialVersionUID = 1L;

	@Override
	public Map getStatistics() {
		return new HashMap();
	}

	@Override
	public void addEntry(String key, Object value) {
	}

	@Override
	public ICacheStatisticsEntry getStatistics(String key) {
		return new NullCacheStatisticsEntry();
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy