perf[storage]: add getData method

This commit is contained in:
godotg committed 2022-10-27 15:57:08 +08:00
1 parent fc16eb963a
commit 356a96f787
1 file changed
+4
@@ -88,6 +88,10 @@ public class Storage<K, V> {
return Collections.unmodifiableCollection(dataMap.values());
}
public Map<K, V> getData() {
return Collections.unmodifiableMap(dataMap);
}
public boolean contain(K key) {
return dataMap.containsKey(key);
}