diff options
author | Aleksandar Pokopec <aleksandar.prokopec@epfl.ch> | 2010-04-10 15:20:46 +0000 |
---|---|---|
committer | Aleksandar Pokopec <aleksandar.prokopec@epfl.ch> | 2010-04-10 15:20:46 +0000 |
commit | e2decb09ed9cbfad6e1c61b68e24423620d01ff3 (patch) | |
tree | a7970f709b9ebaf3f63d6865bc76c45f1c653cff /src/library/scala/collection/mutable/HashSet.scala | |
parent | 519214dcc68c941afb45ef6e749ec0afdb10af65 (diff) | |
download | scala-e2decb09ed9cbfad6e1c61b68e24423620d01ff3.tar.gz scala-e2decb09ed9cbfad6e1c61b68e24423620d01ff3.tar.bz2 scala-e2decb09ed9cbfad6e1c61b68e24423620d01ff3.zip |
More docs. No review.
Diffstat (limited to 'src/library/scala/collection/mutable/HashSet.scala')
-rw-r--r-- | src/library/scala/collection/mutable/HashSet.scala | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/src/library/scala/collection/mutable/HashSet.scala b/src/library/scala/collection/mutable/HashSet.scala index e985e717b0..3d9dc3e55d 100644 --- a/src/library/scala/collection/mutable/HashSet.scala +++ b/src/library/scala/collection/mutable/HashSet.scala @@ -20,6 +20,20 @@ import generic._ * @author Martin Odersky * @version 2.0, 31/12/2006 * @since 1 + * + * @tparam A the type of the elements contained in this set. + * + * @define Coll mutable.HashSet + * @define coll mutable hash set + * @define thatinfo the class of the returned collection. In the standard library configuration, + * `That` is always `HashSet[B]` because an implicit of type `CanBuildFrom[HashSet, B, HashSet[B]]` + * is defined in object `HashSet`. + * @define $bfinfo an implicit value of class `CanBuildFrom` which determines the + * result class `That` from the current representation type `Repr` + * and the new element type `B`. This is usually the `canBuildFrom` value + * defined in object `HashSet`. + * @define mayNotTerminateInf + * @define willNotTerminateInf */ @serializable @SerialVersionUID(1L) class HashSet[A] extends Set[A] @@ -61,7 +75,10 @@ class HashSet[A] extends Set[A] } } -/** Factory object for `HashSet` class */ +/** $factoryInfo + * @define Coll mutable.HashSet + * @define coll mutable hash set + */ object HashSet extends SetFactory[HashSet] { implicit def canBuildFrom[A]: CanBuildFrom[Coll, A, HashSet[A]] = setCanBuildFrom[A] override def empty[A]: HashSet[A] = new HashSet[A] |