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:
@ -15,6 +15,10 @@ public class Hashtable<K, V> implements Map<K, V> {
|
||||
return map.toString();
|
||||
}
|
||||
|
||||
public synchronized boolean isEmpty() {
|
||||
return map.isEmpty();
|
||||
}
|
||||
|
||||
public synchronized int size() {
|
||||
return map.size();
|
||||
}
|
||||
@ -35,6 +39,10 @@ public class Hashtable<K, V> implements Map<K, V> {
|
||||
return map.put(key, value);
|
||||
}
|
||||
|
||||
public synchronized void putAll(Map<? extends K,? extends V> elts) {
|
||||
map.putAll(elts);
|
||||
}
|
||||
|
||||
public synchronized V remove(K key) {
|
||||
return map.remove(key);
|
||||
}
|
||||
|
Reference in New Issue
Block a user