mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-10-13 12:15:15 +00:00
perf[storage]: add getData method
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user