From c8f69e4b2d0be80f915e8dde939ef2dcf6c53a6f Mon Sep 17 00:00:00 2001 From: pc9arzikf <2675083410@qq.com> Date: Sun, 26 Oct 2025 13:55:26 +0800 Subject: [PATCH] ADD file via upload --- Map.java | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 Map.java diff --git a/Map.java b/Map.java new file mode 100644 index 0000000..a2a9960 --- /dev/null +++ b/Map.java @@ -0,0 +1,54 @@ +package 集合框架(LSP); + + +/** + * Map鎺ュ彛锛堥敭鍊煎闆嗗悎锛? + * @author 方初阳 + * @version 1.0 + * @created 23-10月-2025 21:37:33 + */ +public interface Map { + + /** + * @author 方初阳 + * @version 1.0 + * @created 23-10月-2025 21:37:33 + */ + interface Entry { + + public K getKey(); + + public V getValue(); + + /** + * + * @param value + */ + public V setValue(V value); + + } + + /** + * + * @param key + */ + public V get(Object key); + + public Set keySet(); + + /** + * + * @param key + * @param value + */ + public V put(K key, V value); + + /** + * + * @param key + */ + public V remove(Object key); + + public Collection values(); + +} \ No newline at end of file