Dictionary
package java.util;
public abstract
class Dictionary<K,V> {
public Dictionary() {
}
abstract public int size();
abstract public boolean isEmpty();
abstract public Enumeration<K> keys(); // 枚举类型 ,在Map中是 set类型
abstract public Enumeration<V> elements();// 枚举类型
abstract public V get(Object key);
abstract public V put(K key, V value);
abstract public V remove(Object key);
}
时间: 2024-10-17 23:12:17