Removes the totalCachedImages function.
Adds the invalidate function.
@@ -94,11 +94,6 @@ public final class ImageCache {
return image;
}
- /** @return The total number of cached images. */
- public long totalCachedImages() {
- return cachedImages.estimatedSize();
- }
-
/**
* Loads a tile into the cache.
*
@@ -246,4 +241,10 @@ public final class ImageCache {
return destination;
}
+
+ /** Invalidates all entries in the cache. */
+ public void invalidate() {
+ cachedImages.invalidateAll();
+ cachedImages.cleanUp();
+ }
}
