Added methods isEmpty(), putAll(), toArray() to interfaces List and Map

This commit is contained in:
Eric Scharff
2007-09-26 08:57:34 -06:00
parent 4ae4221701
commit b02b98609e
10 changed files with 115 additions and 1 deletions

View File

@ -1,6 +1,8 @@
package java.util;
public interface Map<K, V> {
public boolean isEmpty();
public int size();
public boolean containsKey(K key);
@ -11,6 +13,8 @@ public interface Map<K, V> {
public V put(K key, V value);
public void putAll(Map<? extends K,? extends V> elts);
public V remove(K key);
public void clear();