![JAR search and dependency download from the Maven repository](/logo.png)
com.g2forge.alexandria.java.associative.cache.NeverCacheEvictionPolicy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ax-java Show documentation
Show all versions of ax-java Show documentation
Standard Java library and the basis of the ${alexandria.name} project.
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