public interface MySet<E> extends MyCollection<E>
Modifier and Type | Method and Description |
---|---|
boolean |
add(E o)
Add element o into the set, if it is not already present.
|
boolean add(E o)
add
in interface MyCollection<E>
o
- element to be added to the list. Assume o is not null.