Class CollectionUtils

java.lang.Object
org.checkerframework.javacutil.CollectionUtils

public class CollectionUtils extends Object
Utility methods related to Java Collections.
  • Constructor Details

    • CollectionUtils

      public CollectionUtils()
  • Method Details

    • createLRUCache

      public static <K, V> Map<K,V> createLRUCache(int size)
      Creates a LRU cache.
      Parameters:
      size - size of the cache
      Returns:
      a new cache with the provided size