java.lang.Object
io.github.palexdev.imcache.cache.Cache<V>
- Direct Known Subclasses:
DiskCache
,MemoryCache
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.github.palexdev.imcache.cache.ICache
contains, contains, get, get, getImage, getImage, remove, remove, removeOldest, scan, store
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
cache
-
capacity
protected int capacity
-
-
Constructor Details
-
Cache
public Cache() -
Cache
-
-
Method Details
-
iterator
-
clear
public void clear() -
size
public int size() -
asMap
-
getCapacity
public int getCapacity()- Specified by:
getCapacity
in interfaceICache<V>
-
setCapacity
- Specified by:
setCapacity
in interfaceICache<V>
-