Class PurgableCache
- java.lang.Object
-
- org.eclipse.viatra.query.runtime.matchers.util.PurgableCache
-
-
Constructor Summary
Constructors Constructor Description PurgableCache()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> TgetValue(java.lang.Object key, java.lang.Class<? extends T> clazz, java.util.function.Supplier<T> valueProvider)Return a selected value for the key object.voidpurge()Removes all values stored in the cache
-
-
-
Method Detail
-
getValue
public <T> T getValue(java.lang.Object key, java.lang.Class<? extends T> clazz, java.util.function.Supplier<T> valueProvider)Description copied from interface:ICacheReturn a selected value for the key object. If the value is not available in the cache yet, the given provider is called once
-
purge
public void purge()
Removes all values stored in the cache
-
-