1.1基本概念
1.2接口设计
1.3Map与Set区别
2.相关代码
Map
public interface Map<K, V> { int size(); boolean isEmpty(); void clear(); V put(K key, V value); V get(K key); V remove(K key); boolean containsKey(K key); boolean containsValue(V value); void traversal(Visitor<K, V> visitor); public static abstract class Visitor<K, V> { boolean stop; public abstract boolean visit(K key, V value); } }