summaryrefslogtreecommitdiff
path: root/src/library/scala/collection/immutable/HashSet.scala
diff options
context:
space:
mode:
authormichelou <michelou@epfl.ch>2009-09-15 16:14:29 +0000
committermichelou <michelou@epfl.ch>2009-09-15 16:14:29 +0000
commit4ccb0bf2b78919934cf67b901096331de638ee09 (patch)
tree407c54292d0bacd5f6ccc32e9a74b692d981b9e8 /src/library/scala/collection/immutable/HashSet.scala
parent2788c1ad5b82929a1103a070f5c0bcce83a931e8 (diff)
downloadscala-4ccb0bf2b78919934cf67b901096331de638ee09.tar.gz
scala-4ccb0bf2b78919934cf67b901096331de638ee09.tar.bz2
scala-4ccb0bf2b78919934cf67b901096331de638ee09.zip
fixed headers/comments/svn props, made some pro...
fixed headers/comments/svn props, made some progress with serializable classes
Diffstat (limited to 'src/library/scala/collection/immutable/HashSet.scala')
-rw-r--r--src/library/scala/collection/immutable/HashSet.scala28
1 files changed, 17 insertions, 11 deletions
diff --git a/src/library/scala/collection/immutable/HashSet.scala b/src/library/scala/collection/immutable/HashSet.scala
index 9300164438..6589e83e92 100644
--- a/src/library/scala/collection/immutable/HashSet.scala
+++ b/src/library/scala/collection/immutable/HashSet.scala
@@ -8,16 +8,22 @@
// $Id$
+
package scala.collection.immutable
import scala.collection.generic._
import scala.collection.mutable
-/** This class implements immutable sets using a hash table.
- * It is optimized for sequential accesses where the last updated table is accessed most often.
- * It supports with reasonable efficiency accesses to previous versions of the table by keeping
- * a change log that's regularly compacted.
- * It needs to synchronize most methods, so it is less suitable for highly concurrent accesses.
+/** <p>
+ * This class implements immutable sets using a hash table.
+ * </p>
+ * <p>
+ * It is optimized for sequential accesses where the last updated table is
+ * accessed most often. It supports with reasonable efficiency accesses to
+ * previous versions of the table by keeping a change log that's regularly
+ * compacted. It needs to synchronize most methods, so it is less suitable
+ * for highly concurrent accesses.
+ * </p>
*
* @note the builder of a hash set returns specialized representations EmptySet,Set1,..., Set4
* for sets of size <= 4.
@@ -25,7 +31,7 @@ import scala.collection.mutable
* @author Martin Odersky
* @version 2.8
*/
-@serializable
+@serializable @SerialVersionUID(4020728942921483037L)
class HashSet[A] extends Set[A]
with SetClass[A, HashSet]
with SetTemplate[A, HashSet[A]]
@@ -127,11 +133,11 @@ class HashSet[A] extends Set[A]
}
}
-/** A factory object for immutable HashSets
- *
- * @author Martin Odersky
- * @version 2.8
- */
+/** A factory object for immutable HashSets.
+ *
+ * @author Martin Odersky
+ * @version 2.8
+ */
object HashSet extends SetFactory[HashSet] {
implicit def builderFactory[A]: BuilderFactory[A, HashSet[A], Coll] = setBuilderFactory[A]
override def empty[A]: HashSet[A] = new HashSet