diff options
author | michelou <michelou@epfl.ch> | 2006-11-15 12:46:18 +0000 |
---|---|---|
committer | michelou <michelou@epfl.ch> | 2006-11-15 12:46:18 +0000 |
commit | 821551dd7f72b70b786919efcb58c88a236685ce (patch) | |
tree | a94e98e5792898523c67b93323886bc05cfda9ed /src/library/scala/collection/mutable/BitSet.scala | |
parent | d26dfbdf59f03da6adc2eb87754ba56f142dc06e (diff) | |
download | scala-821551dd7f72b70b786919efcb58c88a236685ce.tar.gz scala-821551dd7f72b70b786919efcb58c88a236685ce.tar.bz2 scala-821551dd7f72b70b786919efcb58c88a236685ce.zip |
improved output of inherited members in DocGene...
improved output of inherited members in DocGenerator
Diffstat (limited to 'src/library/scala/collection/mutable/BitSet.scala')
-rw-r--r-- | src/library/scala/collection/mutable/BitSet.scala | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/src/library/scala/collection/mutable/BitSet.scala b/src/library/scala/collection/mutable/BitSet.scala index 7a518cfc0d..02e876ba80 100644 --- a/src/library/scala/collection/mutable/BitSet.scala +++ b/src/library/scala/collection/mutable/BitSet.scala @@ -1,6 +1,6 @@ /* __ *\ ** ________ ___ / / ___ Scala API ** -** / __/ __// _ | / / / _ | (c) 2003-2006, LAMP/EPFL ** +** / __/ __// _ | / / / _ | (c) 2003-2007, LAMP/EPFL ** ** __\ \/ /__/ __ |/ /__/ __ | ** ** /____/\___/_/ |_/____/_/ | | ** ** |/ ** @@ -13,7 +13,7 @@ package scala.collection.mutable /** - * This class implements mutable, resizable Bit sets + * The class <code>BitSet</code> implements mutable, resizable Bit sets * * @author Burak Emir, Nikolay Mihaylov * @version 1.1 @@ -26,10 +26,13 @@ class BitSet(initSize: Int) extends collection.BitSet with Set[Int] { import compat.Platform.arraycopy - /** default constructor, initial size of 512 bits */ - def this() = this(0); + /** default constructor, initial size of 512 bits. */ + def this() = this(0) - /** ensure that this bitset can store at least <pre>n</pre> bits */ + /** Ensures that this bitset can store at least <code>n</code> bits. + * + * @param n ... + */ def ensureCapacity(n: Int): Unit = if (capacity < n) { if (nbits(arr.length) < n) { @@ -45,7 +48,7 @@ class BitSet(initSize: Int) extends collection.BitSet with Set[Int] { } /** - * Sets <code>i<sup>th</sup></code> bit to true. + * Sets <code>i-th</code> bit to true. * No restriction on <code>i</code> */ def +=(i: Int): Unit = { @@ -58,7 +61,10 @@ class BitSet(initSize: Int) extends collection.BitSet with Set[Int] { } } - /** Clears <code>i<sup>th</sup></code> bit */ + /** Clears the <code>i</code>-th bit. + * + * @param i the <code>i</code>-th element of the bit set. + */ def -=(i: Int): Unit = { if (i >= capacity) return; val oldInt = arr(offset(i)) @@ -69,6 +75,8 @@ class BitSet(initSize: Int) extends collection.BitSet with Set[Int] { } } + /** Clears all bits of the set. + */ def clear: Unit = { java.util.Arrays.fill(arr, 0) size = 0 |