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

io.setl.json.primitive.cache.ICacheFactory Maven / Gradle / Ivy

Go to download

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