This commit is contained in:
2024-06-15 23:30:02 +02:00
parent ac1cc19a88
commit 0c95c28bc4
14 changed files with 333 additions and 11 deletions

View File

@@ -38,10 +38,10 @@ public interface Set<E> extends Iterable<E> {
/**
* returns the set resulting from adding the specified element to this set.
*
* @param element an element (must not be null)
* @param elem an element (must not be null)
* @return the set resulting from adding the specified element to this set.
*/
Set<E> add(E element);
Set<E> add(E elem);
/**
* Returns the intersection of this set and the specified set.