*** empty log message ***
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@4324 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
This commit is contained in:
parent
2fb5e79a0b
commit
8a936e3ceb
|
@ -150,6 +150,27 @@ mobile/Code.scala
|
|||
mobile/Location.scala
|
||||
|
||||
runtime/AtomicReference.java
|
||||
runtime/BoxedBoolean.java
|
||||
runtime/BoxedByte.java
|
||||
runtime/BoxedChar.java
|
||||
runtime/BoxedDouble.java
|
||||
runtime/BoxedFloat.java
|
||||
runtime/BoxedInt.java
|
||||
runtime/BoxedLong.java
|
||||
runtime/BoxedNumber.java
|
||||
runtime/BoxedShort.java
|
||||
runtime/BoxedUnit.java
|
||||
runtime/BoxedAnyArray.scala
|
||||
runtime/BoxedArray.scala
|
||||
runtime/BoxedBooleanArray.scala
|
||||
runtime/BoxedByteArray.scala
|
||||
runtime/BoxedCharArray.scala
|
||||
runtime/BoxedDoubleArray.scala
|
||||
runtime/BoxedFloatArray.scala
|
||||
runtime/BoxedIntArray.scala
|
||||
runtime/BoxedLongArray.scala
|
||||
runtime/BoxedObjectArray.scala
|
||||
runtime/BoxedShortArray.scala
|
||||
runtime/FNV_Hash.java
|
||||
runtime/IOMap.java
|
||||
runtime/InterpreterSupport.java
|
||||
|
|
|
@ -0,0 +1,24 @@
|
|||
/* __ *\
|
||||
** ________ ___ / / ___ Scala API **
|
||||
** / __/ __// _ | / / / _ | (c) 2002, LAMP/EPFL **
|
||||
** __\ \/ /__/ __ |/ /__/ __ | **
|
||||
** /____/\___/_/ |_/____/_/ | | **
|
||||
** |/ **
|
||||
\* */
|
||||
|
||||
// $Id$
|
||||
|
||||
package scala;
|
||||
|
||||
/** @meta class [?T] extends scala.AnyRef with java.lang.Cloneable with java.io.Serializable; */
|
||||
abstract class Array[T](val length: Int) extends Cloneable with java.io.Serializable with Seq[T] {
|
||||
|
||||
def apply(i: Int): T;
|
||||
def update(i: Int, x: T): Unit;
|
||||
|
||||
def elements = new Iterator[T] {
|
||||
var index = 0;
|
||||
def hasNext: Boolean = index < length;
|
||||
def next: T = { val i = index; index = i + 1; apply(i) }
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue