|
|
|
Sponsored Link •
|
|
Advertisement
|
interface extension to decouple services or restrict the semantic contract.
List adds void add(int, Object), Object get(int),
ListIterator listIterator(), etc...
Set doesn't declare any new methods compared to Collection
boolean add(Object):
Collection - Ensures that this collection contains the specified element.
Set - Adds the specified element to this set if it is not already present.
|
Sponsored Links
|