diff options
author | Martin Odersky <odersky@gmail.com> | 2009-02-13 11:59:49 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2009-02-13 11:59:49 +0000 |
commit | 04840e2ed4530df9a5ca59b984bf2b37a976dc70 (patch) | |
tree | 61394762e202f8ab60e0d3a8e8ac688404241bc3 /src/library/scalax/collection/immutable/Set.scala | |
parent | 708baf94764e2a839e24ca6204060a8d0664d88c (diff) | |
download | scala-04840e2ed4530df9a5ca59b984bf2b37a976dc70.tar.gz scala-04840e2ed4530df9a5ca59b984bf2b37a976dc70.tar.bz2 scala-04840e2ed4530df9a5ca59b984bf2b37a976dc70.zip |
new version of collection libraries
Diffstat (limited to 'src/library/scalax/collection/immutable/Set.scala')
-rwxr-xr-x | src/library/scalax/collection/immutable/Set.scala | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/library/scalax/collection/immutable/Set.scala b/src/library/scalax/collection/immutable/Set.scala index 5b39aaa3a4..9462cd3c5f 100755 --- a/src/library/scalax/collection/immutable/Set.scala +++ b/src/library/scalax/collection/immutable/Set.scala @@ -11,17 +11,19 @@ package scalax.collection.immutable -import collection.generic._ +import generic._ object Set extends generic.SetFactory[Set] { private val hashSeed = "Set".hashCode - def empty[A]: Set[A] = null // !!! + def empty[A]: Set[A] = new EmptySet[A] } trait Set[A] extends OrderedIterable[A] with collection.Set[A] with SetTemplate[Set, A] { + override def newBuilder[B]: Builder[Set, B] = Set.newBuilder[B] + /** Compares this set with another object and returns true, iff the * other object is also a set which contains the same elements as * this set. |