public class ScriptCache<F extends ProjectFile,V,L>
extends java.lang.Object
Constructor and Description |
---|
ScriptCache(int maximumSize,
int hoursExpiration,
java.util.function.Function<F,ScriptResult<V>> loader,
java.util.function.BiConsumer<ScriptResult<V>,java.util.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, java.util.function.Function<F,ScriptResult<V>> loader, java.util.function.BiConsumer<ScriptResult<V>,java.util.List<L>> notifier)
Copyright © 2019. All rights reserved.