mirror of
https://github.com/corda/corda.git
synced 2025-06-13 04:38:19 +00:00
Added methods isEmpty(), putAll(), toArray() to interfaces List and Map
This commit is contained in:
@ -26,6 +26,10 @@ public class WeakHashMap<K, V> implements Map<K, V> {
|
||||
}
|
||||
}
|
||||
|
||||
public boolean isEmpty() {
|
||||
return map.isEmpty();
|
||||
}
|
||||
|
||||
public int size() {
|
||||
return map.size();
|
||||
}
|
||||
@ -50,6 +54,10 @@ public class WeakHashMap<K, V> implements Map<K, V> {
|
||||
return map.put(key, value);
|
||||
}
|
||||
|
||||
public void putAll(Map<? extends K,? extends V> elts) {
|
||||
map.putAll(elts);
|
||||
}
|
||||
|
||||
public V remove(K key) {
|
||||
poll();
|
||||
return map.remove(key);
|
||||
|
Reference in New Issue
Block a user