diff options
Diffstat (limited to 'src/library/scalax/collection/mutable/BuilderProxy.scala')
-rw-r--r-- | src/library/scalax/collection/mutable/BuilderProxy.scala | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/library/scalax/collection/mutable/BuilderProxy.scala b/src/library/scalax/collection/mutable/BuilderProxy.scala new file mode 100644 index 0000000000..cf5b3d69a5 --- /dev/null +++ b/src/library/scalax/collection/mutable/BuilderProxy.scala @@ -0,0 +1,22 @@ +/* __ *\ +** ________ ___ / / ___ Scala API ** +** / __/ __// _ | / / / _ | (c) 2003-2007, LAMP/EPFL ** +** __\ \/ /__/ __ |/ /__/ __ | http://scala-lang.org/ ** +** /____/\___/_/ |_/____/_/ | | ** +** |/ ** +\* */ + +// $Id: ListBuffer.scala 14378 2008-03-13 11:39:05Z dragos $ + +package scalax.collection.mutable + +abstract class BuilderProxy[+CC[B], A] extends Builder[CC, A] with Proxy { + val self: Builder[DD, A] forSome { type DD[X] } + def +=(x: A) = self += x + def elements: Iterator[A] = self.elements + def result: CC[A] + def clear() = self.clear() + override def ++=(xs: Iterator[A]) = self ++= xs + override def ++=(xs: Iterable[A]) = self ++= xs +} + |