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