public class ScriptCache<F extends ProjectFile,V,L> extends Object
Constructor and Description |
---|
ScriptCache(int maximumSize,
int hoursExpiration,
Function<F,ScriptResult<V>> loader,
BiConsumer<ScriptResult<V>,List<L>> notifier) |
Modifier and Type | Method and Description |
---|---|
void |
addListener(F projectFile,
L listener) |
ScriptResult<V> |
get(F projectFile) |
void |
invalidate(F projectFile) |
void |
removeListener(F projectFile,
L listener) |
public ScriptCache(int maximumSize, int hoursExpiration, Function<F,ScriptResult<V>> loader, BiConsumer<ScriptResult<V>,List<L>> notifier)
Copyright © 2020. All rights reserved.