com.expleague.ml.cache.DataCache Maven / Gradle / Ivy
package com.expleague.ml.cache;
import java.nio.file.Path;
import java.util.Arrays;
public interface DataCache {
Class extends DataCacheItem>[] available();
default boolean isAvailable(Class extends DataCacheItem> part) {
return Arrays.stream(available()).anyMatch(part::equals);
}
boolean contains(Class extends DataCacheItem> part);
void update(Class extends DataCacheItem> part);
> T get(Class part);
Path getPath();
// Shared components
D getDataManager();
Conf getConfig();
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy