summaryrefslogtreecommitdiff
path: root/src/library/scala/runtime/BoxedUnitArray.scala
blob: 75109b612b4b27b9215e50e32c994333bb8459ff (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
26
27
28
/*                     __                                               *\
**     ________ ___   / /  ___     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
import scala.reflect.Manifest

@serializable
final class BoxedUnitArray(val value: Array[Unit]) extends BoxedArray[Unit] {

  def elemManifest = Manifest.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
}