|
Scala 2.4.0-final
|
object
Array
extends
java.lang.Object
with
scala.ScalaObject
Constructor Summary | |
def
this
|
Def Summary | |
def
apply
(xs: scala.Boolean*)
: scala.Array[scala.Boolean]
|
|
def
apply
(xs: scala.Byte*)
: scala.Array[scala.Byte]
|
|
def
apply
(xs: scala.Char*)
: scala.Array[scala.Char]
|
|
def
apply
(xs: scala.Double*)
: scala.Array[scala.Double]
|
|
def
apply
(xs: scala.Float*)
: scala.Array[scala.Float]
|
|
def
apply
(xs: scala.Int*)
: scala.Array[scala.Int]
|
|
def
apply
(xs: scala.Long*)
: scala.Array[scala.Long]
|
|
def
apply
(xs: scala.Short*)
: scala.Array[scala.Short]
|
|
def
apply
(xs: scala.Unit*)
: scala.Array[scala.Unit]
|
|
def
apply
[A <: java.lang.Object]
(xs: A*)
: scala.Array[A]
Create an array with given elements. |
|
def
concat
[T]
(xs: scala.Array[T]*)
: scala.Array[T]
Concatenate all argument arrays into a single array. |
|
def
copy
(src: java.lang.Object, srcPos: scala.Int, dest: java.lang.Object, destPos: scala.Int, length: scala.Int)
: scala.Unit
Copy one array to another. Equivalent to System.arraycopy(src, srcPos, dest, destPos, length) ,
except that this works also for polymorphic and boxed arrays.
|
|
def
make
[a]
(n: scala.Int, elem: a)
: scala.Array[a]
Create an array containing several copies of an element. |
|
def
range
(start: scala.Int, end: scala.Int)
: scala.Array[scala.Int]
Create a an array containing of successive integers. |
|
def
unapplySeq
[A]
(x: scala.Any)
: scala.Option[scala.Seq[A]]
This method is called in a pattern match { case Array(...) => }. |
Constructor Detail |
Def Detail |
def
apply
(xs: scala.Boolean*): scala.Array[scala.Boolean]
def
apply
(xs: scala.Byte*): scala.Array[scala.Byte]
def
apply
(xs: scala.Char*): scala.Array[scala.Char]
def
apply
(xs: scala.Double*): scala.Array[scala.Double]
def
apply
(xs: scala.Float*): scala.Array[scala.Float]
def
apply
(xs: scala.Int*): scala.Array[scala.Int]
def
apply
(xs: scala.Long*): scala.Array[scala.Long]
def
apply
(xs: scala.Short*): scala.Array[scala.Short]
def
apply
(xs: scala.Unit*): scala.Array[scala.Unit]
def
apply
[A <: java.lang.Object](xs: A*): scala.Array[A]
xs -
the elements to put in the array
def
concat
[T](xs: scala.Array[T]*): scala.Array[T]
xs -
...
def
copy
(src: java.lang.Object, srcPos: scala.Int, dest: java.lang.Object, destPos: scala.Int, length: scala.Int): scala.Unit
System.arraycopy(src, srcPos, dest, destPos, length)
,
except that this works also for polymorphic and boxed arrays.src -
...
srcPos -
...
dest -
...
destPos -
...
length -
...
def
make
[a](n: scala.Int, elem: a): scala.Array[a]
n -
the length of the resulting array
elem -
the element composing the resulting array
def
range
(start: scala.Int, end: scala.Int): scala.Array[scala.Int]
from -
the value of the first element of the array
end -
the value of the last element fo the array plus 1
def
unapplySeq
[A](x: scala.Any): scala.Option[scala.Seq[A]]
x -
the selector value