public final class CollectionUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static <K,V> Map<K,V> |
lruCache(int maxSize)
Returns a bounded in size LRU map.
|
static <K,V> Map<K,V> |
lruCache(int initialCapacity,
int maxSize)
Returns a bounded in size LRU map.
|
public static <K,V> Map<K,V> lruCache(int maxSize)
maxSize - the maximum map sizepublic static <K,V> Map<K,V> lruCache(int initialCapacity, int maxSize)
initialCapacity - the initial capacity of the mapmaxSize - the maximum map sizeCopyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.