summaryrefslogtreecommitdiff
path: root/src/library/scala/collection/immutable/SortedSet.scala
diff options
context:
space:
mode:
authorAleksandar Pokopec <aleksandar.prokopec@epfl.ch>2010-04-13 15:50:39 +0000
committerAleksandar Pokopec <aleksandar.prokopec@epfl.ch>2010-04-13 15:50:39 +0000
commitbf0921a072c4761824365105c785dd5f2cf97588 (patch)
tree3bc5c6bb1346a4ebe4355108ac4345272b221540 /src/library/scala/collection/immutable/SortedSet.scala
parent1973a1f7d3bbc052464ad0c8f43dda10b063f443 (diff)
downloadscala-bf0921a072c4761824365105c785dd5f2cf97588.tar.gz
scala-bf0921a072c4761824365105c785dd5f2cf97588.tar.bz2
scala-bf0921a072c4761824365105c785dd5f2cf97588.zip
Docs. no review
Diffstat (limited to 'src/library/scala/collection/immutable/SortedSet.scala')
-rw-r--r--src/library/scala/collection/immutable/SortedSet.scala10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/library/scala/collection/immutable/SortedSet.scala b/src/library/scala/collection/immutable/SortedSet.scala
index 10ff466ff8..6c9433c30c 100644
--- a/src/library/scala/collection/immutable/SortedSet.scala
+++ b/src/library/scala/collection/immutable/SortedSet.scala
@@ -22,18 +22,20 @@ import mutable.Builder
* @author Martin Odersky
* @version 2.8
* @since 2.4
+ * @define Coll immutable.SortedSet
+ * @define coll immutable sorted set
*/
trait SortedSet[A] extends Set[A] with scala.collection.SortedSet[A] with SortedSetLike[A, SortedSet[A]] {
/** Needs to be overridden in subclasses. */
override def empty: SortedSet[A] = SortedSet.empty[A]
}
-/**
- * A companion object for immutable sorted sets.
- *
- * @since 2.4
+/** $factoryInfo
+ * @define Coll immutable.SortedSet
+ * @define coll immutable sorted set
*/
object SortedSet extends ImmutableSortedSetFactory[SortedSet] {
+ /** $sortedSetCanBuildFromInfo */
implicit def canBuildFrom[A](implicit ord: Ordering[A]): CanBuildFrom[Coll, A, SortedSet[A]] = new SortedSetCanBuildFrom[A]
def empty[A](implicit ord: Ordering[A]): SortedSet[A] = TreeSet.empty[A]
}