Class CacheMap<K,V>

java.lang.Object
org.tweetyproject.arg.adf.util.CacheMap<K,V>
Type Parameters:
K - the key
V - the value
All Implemented Interfaces:
Function<K,V>, Map<K,V>

public final class CacheMap<K,V> extends Object implements Function<K,V>, Map<K,V>
Uses the provided function to compute absent values on access, theses values are memorized for future access to avoid further computations.
Author:
Mathias Hofer