@Override
            protected boolean removeEldestEntry(Map.Entry<K, V> eldest) {
                return this.size() > LRUCache.this.cacheSize;
            }
Creates a new LRU cache.

@param cacheSize
           the maximum number of entries that will be kept in this cache.
jme3-terrain/src/main/java/com/jme3/terrain/geomipmap/LRUCache.java