diff options
author | Martin Odersky <odersky@gmail.com> | 2009-08-18 19:25:22 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2009-08-18 19:25:22 +0000 |
commit | 90bdc95f5ad6ec6be185a86df6de5c5f5c0e4dba (patch) | |
tree | 95689658b42f2fb7c6c2d80e1b15c824b0233ef6 /src | |
parent | 1d28a77bf349e8e03a0eb53da554959c80864220 (diff) | |
download | scala-90bdc95f5ad6ec6be185a86df6de5c5f5c0e4dba.tar.gz scala-90bdc95f5ad6ec6be185a86df6de5c5f5c0e4dba.tar.bz2 scala-90bdc95f5ad6ec6be185a86df6de5c5f5c0e4dba.zip |
Added file; I forgot before and it broke the build
Diffstat (limited to 'src')
-rw-r--r-- | src/library/scala/runtime/BoxedUnitArray.scala | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/library/scala/runtime/BoxedUnitArray.scala b/src/library/scala/runtime/BoxedUnitArray.scala new file mode 100644 index 0000000000..244ae5c03c --- /dev/null +++ b/src/library/scala/runtime/BoxedUnitArray.scala @@ -0,0 +1,25 @@ +/* __ *\ +** ________ ___ / / ___ Scala API ** +** / __/ __// _ | / / / _ | (c) 2002-2009, LAMP/EPFL ** +** __\ \/ /__/ __ |/ /__/ __ | http://scala-lang.org/ ** +** /____/\___/_/ |_/____/_/ | | ** +** |/ ** +\* */ + +// $Id: BoxedDoubleArray.scala 17680 2009-05-08 16:33:15Z odersky $ + + +package scala.runtime + +@serializable +final class BoxedUnitArray(val value: Array[Unit]) extends BoxedArray[Unit] { + + def length: Int = value.length + + def apply(index: Int): Unit = value(index) + + def update(index: Int, elem: Unit) { + value(index) = elem + } + def unbox(elemClass: Class[_]): AnyRef = value +} |