Fixed: #1675 caching as bitmap / filters vs zoom

This commit is contained in:
Jindra Petřík
2021-04-04 13:23:23 +02:00
parent 558b5f08e4
commit 9b4507c2b9
5 changed files with 93 additions and 9 deletions

View File

@@ -12,7 +12,8 @@
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library.
* License along with this library.
*/
package com.jpexs.helpers;
import com.jpexs.decompiler.flash.helpers.Freed;
@@ -21,8 +22,11 @@ import java.io.IOException;
import java.lang.ref.WeakReference;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.TreeSet;
import java.util.WeakHashMap;
/**
@@ -169,4 +173,10 @@ public class Cache<K, V> implements Freed {
((Freed) cache).free();
}
}
public Set<K> keys() {
Set<K> ret = new HashSet<>();
ret.addAll(cache.keySet());
return ret;
}
}