summaryrefslogtreecommitdiff
path: root/src/library/scalax/collection/generic/Cloneable.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/library/scalax/collection/generic/Cloneable.scala')
-rw-r--r--src/library/scalax/collection/generic/Cloneable.scala18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/library/scalax/collection/generic/Cloneable.scala b/src/library/scalax/collection/generic/Cloneable.scala
new file mode 100644
index 0000000000..455c88e47b
--- /dev/null
+++ b/src/library/scalax/collection/generic/Cloneable.scala
@@ -0,0 +1,18 @@
+/* __ *\
+** ________ ___ / / ___ Scala API **
+** / __/ __// _ | / / / _ | (c) 2003-2009, LAMP/EPFL **
+** __\ \/ /__/ __ |/ /__/ __ | http://scala-lang.org/ **
+** /____/\___/_/ |_/____/_/ | | **
+** |/ **
+\* */
+
+// $Id: CloneableCollection.scala 16893 2009-01-13 13:09:22Z cunei $
+
+
+package scala.collection.generic
+
+/** A trait for cloneable collections.
+ */
+trait Cloneable[A <: AnyRef] extends java.lang.Cloneable {
+ override def clone(): A = super.clone().asInstanceOf[A]
+}