diff options
author | Lex Spoon <lex@lexspoon.org> | 2007-03-21 09:49:42 +0000 |
---|---|---|
committer | Lex Spoon <lex@lexspoon.org> | 2007-03-21 09:49:42 +0000 |
commit | 699c6045ff589a6387e0b73498b53646c6313b34 (patch) | |
tree | 6fecf5993caf5e392d26dd644957d3d4acb92fa9 /src/library/scala/collection/Set.scala | |
parent | 9715d09e8069e5a7ea62ef06d9cefe342b5f1c8b (diff) | |
download | scala-699c6045ff589a6387e0b73498b53646c6313b34.tar.gz scala-699c6045ff589a6387e0b73498b53646c6313b34.tar.bz2 scala-699c6045ff589a6387e0b73498b53646c6313b34.zip |
comment updates for various set and map classes...
comment updates for various set and map classes and traits
Diffstat (limited to 'src/library/scala/collection/Set.scala')
-rw-r--r-- | src/library/scala/collection/Set.scala | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/src/library/scala/collection/Set.scala b/src/library/scala/collection/Set.scala index 2de995df25..94cb1d9256 100644 --- a/src/library/scala/collection/Set.scala +++ b/src/library/scala/collection/Set.scala @@ -13,22 +13,19 @@ package scala.collection /** <p> - * This class defines the interface of collections that do not contain - * duplicate elements. + * A set is a collection that includes at most one of any object. * </p> * <p> - * Class <code>Set</code> may only be used for accessing elements - * from set implementations. Two different extensions - * of class <code>Set</code> in the package + * This trait provides a limited interface, only allowing reading of elements. + * There are two extensions of this trait, in packages * <code><a href="mutable$content.html" target="contentFrame"> - * scala.collection.mutable</a></code> and - * <code><a href="immutable$content.html" target="contentFrame"> - * scala.collection.immutable</a></code> provide functionality for adding - * new elements to a set. The class in the first package is implemented - * by sets the are modified destructively, whereas the class in the second - * package is used by functional set implementations that rely on immutable - * data structures. - * </p> + * scala.collection.mutable</a></code> + * and <code><a href="immutable$content.html" target="contentFrame"> + * scala.collection.immutable</a></code>, which provide functionality for + * adding and removing objects from the set. The trait in the first package is + * for sets that are modified destructively, whereas the trait in + * the second package is for immutable sets which create a new set + * when something is added or removed to them. * * @author Matthias Zenger * @author Martin Odersky |