Package com.anylogic.engine
          
          
- java.lang.Object
- java.util.AbstractMap<K,
- java.util.HashMap<K,
- java.util.LinkedHashMap<K,
- com.anylogic.engine.LRUCache<K,
- All Implemented Interfaces:
- Serializable,- Cloneable,- Map<K,- V> 
@AnyLogicInternalAPI public class LRUCache<K,V> extends LinkedHashMap<K,V> 
- See Also:
- Serialized Form
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>  | Modifier and Type | Field | Description | 
|---|---|---|
| static final boolean | DEFAULT_ACCESS_ORDER | |
| static final int | DEFAULT_INITITAL_CAPACITY | |
| static final float | DEFAULT_LOAD_FACTOR | 
| Constructor | Description | 
|---|---|
| LRUCache | Constructs an empty  LRUCacheinstance with the specified cache capacity. | 
| LRUCache | Constructs an empty  LRUCacheinstance with the specified cache capacity, load factor and ordering mode. | 
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, sizepublic static final int DEFAULT_INITITAL_CAPACITY
- See Also:
- Constant Field Values
public static final float DEFAULT_LOAD_FACTOR
- See Also:
- Constant Field Values
public static final boolean DEFAULT_ACCESS_ORDER
- See Also:
- Constant Field Values
public LRUCache(int cacheSize) 
Constructs an empty 
LRUCache instance with the specified cache capacity.- Parameters:
- cacheSize- cache size
public LRUCache(int cacheSize, float loadFactor, boolean accessOrder) 
Constructs an empty 
LRUCache instance with the specified cache capacity, load factor and ordering mode.- Parameters:
- cacheSize- the cache size
- accessOrder- the ordering mode -- truefor access-order,- falsefor insertion-order