Base interface for classes that collect elements.
interface
|
ICollector
|
with
|
<in
T>
|
||
base of
|
ContentNode
|
||||
IBag
|
|||||
IDeque
|
|||||
MapRegion
|
|||||
TypeDocNode
|
Adds the given element to this collection.
method
|
Add
(T element)
|
||
type
|
bool
|
||
params
|
element
|
The element to add. | |
returns
|
true
if
the
collection
has
changed,
false
if
not. |
Remarks:
Implementing
methods
shall
return
false
iff
the
element
has
already
been
collected,
i.e.
it
is
contained
in
the
collection.
If
in
doubt,
return
true
.