diff options
Diffstat (limited to 'src/library/scala/collection/immutable/HashMap.scala')
-rw-r--r-- | src/library/scala/collection/immutable/HashMap.scala | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/src/library/scala/collection/immutable/HashMap.scala b/src/library/scala/collection/immutable/HashMap.scala index 0849536755..730c8e1435 100644 --- a/src/library/scala/collection/immutable/HashMap.scala +++ b/src/library/scala/collection/immutable/HashMap.scala @@ -15,11 +15,16 @@ import scala.collection.generic._ import scala.collection.mutable import annotation.unchecked.uncheckedVariance -/** This class implements immutable maps 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 maps 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 map returns specialized representations EmptyMap,Map1,..., Map4 * for maps of size <= 4. @@ -27,7 +32,7 @@ import annotation.unchecked.uncheckedVariance * @author Martin Odersky * @version 2.0, 19/01/2007 */ -@serializable +@serializable @SerialVersionUID(8886909077084990906L) class HashMap[A, +B] extends Map[A,B] with ImmutableMapTemplate[A, B, HashMap[A, B]] with mutable.HashTable[A] { type Entry = collection.mutable.DefaultEntry[A, Any] |