io.setl.json.primitive.cache.NoCache 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;
import java.util.function.Function;
import javax.annotation.Nonnull;
/**
* A cache that does no caching.
*
* @author Simon Greatrix on 05/02/2020.
*/
public class NoCache implements ICache {
/** New instance. */
public NoCache() {
// do nothing
}
@Nonnull
@Override
public V get(K key, Function creator) {
return creator.apply(key);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy