diff options
author | Aleksandar Pokopec <aleksandar.prokopec@epfl.ch> | 2010-04-09 17:22:58 +0000 |
---|---|---|
committer | Aleksandar Pokopec <aleksandar.prokopec@epfl.ch> | 2010-04-09 17:22:58 +0000 |
commit | 0d80fa2d50c287837f45fb26e8ab3b69e278a9bb (patch) | |
tree | df8de586600c3493252b318e08a16674d4240d7c /src/library/scala/collection/mutable/HashTable.scala | |
parent | 2b59cbaafa54f8752e9a00858f8d3bd1474ba59b (diff) | |
download | scala-0d80fa2d50c287837f45fb26e8ab3b69e278a9bb.tar.gz scala-0d80fa2d50c287837f45fb26e8ab3b69e278a9bb.tar.bz2 scala-0d80fa2d50c287837f45fb26e8ab3b69e278a9bb.zip |
Work on mutable collections docs.
Diffstat (limited to 'src/library/scala/collection/mutable/HashTable.scala')
-rw-r--r-- | src/library/scala/collection/mutable/HashTable.scala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/library/scala/collection/mutable/HashTable.scala b/src/library/scala/collection/mutable/HashTable.scala index 14f1720a4c..1f6b6152cb 100644 --- a/src/library/scala/collection/mutable/HashTable.scala +++ b/src/library/scala/collection/mutable/HashTable.scala @@ -108,7 +108,7 @@ trait HashTable[A] { private def capacity(expectedSize: Int) = if (expectedSize == 0) 1 else powerOfTwo(expectedSize) - /** Find entry with given key in table, null if not found + /** Find entry with given key in table, null if not found. */ protected def findEntry(key: A): Entry = { val h = index(elemHashCode(key)) @@ -129,7 +129,7 @@ trait HashTable[A] { resize(2 * table.length) } - /** Remove entry from table if present + /** Remove entry from table if present. */ protected def removeEntry(key: A) : Entry = { val h = index(elemHashCode(key)) @@ -155,7 +155,7 @@ trait HashTable[A] { null } - /** An iterator returning all entries + /** An iterator returning all entries. */ protected def entriesIterator: Iterator[Entry] = new Iterator[Entry] { val iterTable = table |