From af671bf63f762ab1643c4d71d55c25aae8290a0f Mon Sep 17 00:00:00 2001 From: pc9arzikf <2675083410@qq.com> Date: Sun, 26 Oct 2025 13:54:26 +0800 Subject: [PATCH] ADD file via upload --- Collection.java | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Collection.java diff --git a/Collection.java b/Collection.java new file mode 100644 index 0000000..4ff74eb --- /dev/null +++ b/Collection.java @@ -0,0 +1,30 @@ +package ϿܣLSP; + + +/** + * 顶层集合接口 + * @author + * @version 1.0 + * @created 23-10-2025 21:36:55 + */ +public interface Collection { + + /** + * + * @param e + */ + public boolean add(E e); + + public boolean isEmpty(); + + public Iterator iterator(); + + /** + * + * @param o + */ + public boolean remove(Object o); + + public int size(); + +} \ No newline at end of file