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

com.g2forge.alexandria.java.associative.cache.NeverCacheEvictionPolicy Maven / Gradle / Ivy

There is a newer version: 0.0.18
Show newest version
package com.g2forge.alexandria.java.associative.cache;

import java.util.Collection;
import java.util.Collections;

import com.g2forge.alexandria.java.core.iface.ISingleton;

public class NeverCacheEvictionPolicy implements ISingleton, ICacheEvictionPolicy {
	protected static final NeverCacheEvictionPolicy singleton = new NeverCacheEvictionPolicy<>();

	@SuppressWarnings("unchecked")
	public static  NeverCacheEvictionPolicy create() {
		return (NeverCacheEvictionPolicy) singleton;
	}

	private NeverCacheEvictionPolicy() {}

	@Override
	public Collection access(boolean create, K key) {
		return Collections.emptyList();
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy