io.setl.json.primitive.cache.ICacheFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of canonical-json Show documentation
Show all versions of canonical-json Show documentation
An implementation of the Canonical JSON format with support for javax.json and Jackson
The newest version!
package io.setl.json.primitive.cache;
/**
* Interface cache factories should implement.
*
* @author Simon Greatrix on 05/02/2020.
*/
public interface ICacheFactory {
/**
* Create a new cache of the required type.
*
* @param type the cache type
* @param maxSize the suggested maximum number of values to hold in the cache
* @param the cache's key type
* @param the cache's value type
*
* @return the new cache
*/
ICache create(CacheType type, int maxSize);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy