next up previous contents
Next: Sequences Up: Collections Previous: Iterating   Contents

Extensible Collections

Collections derived from ExtensibleCollection can be modified by adding or removing elements in various ways. The core protocol is:

add:
inserts the given object into the collection.
remove:
removes an object equal to the given one from the collection.
addAll:
inserts all elements from the first collection contained in the second.
removeAll:
removes all elements from the first collection contained in the second.
clear
removes all the elements from the collection.



Brian Rice 2004-08-24