capacity property

int capacity
final

The maximum capacity of the cache. When more values will be added to the cache the least "desired" values will be removed. "desired" values are determined by the type of the cache. For example the lruCache will evict the item wich was not used for the longest time.

Implementation

final int capacity;