Changeset 31466 in osm for applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/MemoryTileCache.java
- Timestamp:
- 2015-08-08T12:30:05+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/MemoryTileCache.java
r31434 r31466 23 23 * Default cache size 24 24 */ 25 protected int cacheSize = 200;25 protected int cacheSize; 26 26 27 27 protected final Map<String, CacheEntry> hash; … … 36 36 */ 37 37 public MemoryTileCache() { 38 this(200); 39 } 40 41 /** 42 * Constructs a new {@code MemoryTileCache}. 43 * @param cacheSize size of the cache 44 */ 45 public MemoryTileCache(int cacheSize) { 46 this.cacheSize = cacheSize; 38 47 hash = new HashMap<>(cacheSize); 39 48 lruTiles = new CacheLinkedListElement(); 40 49 } 50 41 51 42 52 @Override
Note:
See TracChangeset
for help on using the changeset viewer.