diff options
author | mihaylov <mihaylov@epfl.ch> | 2007-04-17 13:39:37 +0000 |
---|---|---|
committer | mihaylov <mihaylov@epfl.ch> | 2007-04-17 13:39:37 +0000 |
commit | 7f0f5d65866fb66ce3971c8ad37de18ff4cf365a (patch) | |
tree | f6132419a3a6449c586144fc1595d8f7c30a5a10 /src | |
parent | 9a17c7fb0860963c9f04116ba3dc17a566736f1a (diff) | |
download | scala-7f0f5d65866fb66ce3971c8ad37de18ff4cf365a.tar.gz scala-7f0f5d65866fb66ce3971c8ad37de18ff4cf365a.tar.bz2 scala-7f0f5d65866fb66ce3971c8ad37de18ff4cf365a.zip |
Made scala.Collection platform-independent
Diffstat (limited to 'src')
-rw-r--r-- | src/library/scala/Collection.scala | 20 |
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 +} |