blob: 78a033190aacd9e2d98c6df7d8f48375525e5313 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
/* __ *\
** ________ ___ / / ___ Scala API **
** / __/ __// _ | / / / _ | (c) 2002-2009, LAMP/EPFL **
** __\ \/ /__/ __ |/ /__/ __ | http://scala-lang.org/ **
** /____/\___/_/ |_/____/_/ | | **
** |/ **
\* */
// $Id: BoxedByteArray.scala 17000 2009-01-29 13:05:53Z odersky $
package scalax.runtime
@serializable
final class BoxedIntArray(val value: Array[Int]) extends BoxedArray[Int] {
def length: Int = value.length
def apply(index: Int): Int = value(index)
def update(index: Int, elem: Int) {
value(index) = elem
}
def unbox(elemClass: Class[_]): AnyRef = value
}
|