Package org.checkerframework.javacutil
Class CollectionUtils
java.lang.Object
org.checkerframework.javacutil.CollectionUtils
Utility methods related to Java Collections.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <K,
V> Map<K, V> createLRUCache
(int size) Creates a LRU cache.
-
Constructor Details
-
CollectionUtils
public CollectionUtils()
-
-
Method Details
-
createLRUCache
Creates a LRU cache.- Parameters:
size
- size of the cache- Returns:
- a new cache with the provided size
-