summaryrefslogtreecommitdiff
path: root/src/library
diff options
context:
space:
mode:
authormihaylov <mihaylov@epfl.ch>2007-04-17 13:39:37 +0000
committermihaylov <mihaylov@epfl.ch>2007-04-17 13:39:37 +0000
commit7f0f5d65866fb66ce3971c8ad37de18ff4cf365a (patch)
treef6132419a3a6449c586144fc1595d8f7c30a5a10 /src/library
parent9a17c7fb0860963c9f04116ba3dc17a566736f1a (diff)
downloadscala-7f0f5d65866fb66ce3971c8ad37de18ff4cf365a.tar.gz
scala-7f0f5d65866fb66ce3971c8ad37de18ff4cf365a.tar.bz2
scala-7f0f5d65866fb66ce3971c8ad37de18ff4cf365a.zip
Made scala.Collection platform-independent
Diffstat (limited to 'src/library')
-rw-r--r--src/library/scala/Collection.scala20
1 files changed, 17 insertions, 3 deletions
diff --git a/src/library/scala/Collection.scala b/src/library/scala/Collection.scala
index 10aa17d3e8..f3c09d9865 100644
--- a/src/library/scala/Collection.scala
+++ b/src/library/scala/Collection.scala
@@ -1,4 +1,18 @@
-package scala;
+/* __ *\
+** ________ ___ / / ___ Scala API **
+** / __/ __// _ | / / / _ | (c) 2002-2007, LAMP/EPFL **
+** __\ \/ /__/ __ |/ /__/ __ | http://scala-lang.org/ **
+** /____/\___/_/ |_/____/_/ | | **
+** |/ **
+\* */
+
+// $Id$
+
+
+package scala
+
+
+import Predef._
/** Variant of <code>Iterable</code> used to describe
* collections with a finite number of elements.
@@ -24,10 +38,10 @@ trait Collection[+A] extends Iterable[A] {
/** Defines the prefix of this object's <code>toString</code> representation.
*/
protected def stringPrefix : String = {
- val string = getClass.getName
+ val string = this.getClass.getName
val idx = string.lastIndexOf('.' : Int)
if (idx != -1) string.substring(idx + 1)
else string
}
-} \ No newline at end of file
+}