NArray
Attributes
- Source
- package.scala
- Graph
-
- Supertypes
- Self type
-
NArray.type
Members list
Value members
Concrete methods
Copy one array to another, truncating or padding with default values (if necessary) so the copy has the specified length. The new array can have a different type than the original one as long as the values are assignment-compatible. When copying between primitive and object arrays, boxing and unboxing are supported.
Copy one array to another, truncating or padding with default values (if necessary) so the copy has the specified length. The new array can have a different type than the original one as long as the values are assignment-compatible. When copying between primitive and object arrays, boxing and unboxing are supported.
Equivalent to Java's java.util.Arrays.copyOf(original, newLength, newType)
, except that this works for all combinations of primitive and object arrays in a single method.
Attributes
- See also
-
java.util.Arrays#copyOf
- Source
- package.scala
Copy one array to another.
Copy one array to another.
Note that the passed-in dest
array will be modified by this call.
Value parameters
- dest
-
destination array.
- destPos
-
starting position in the destination array.
- src
-
the source array.
Attributes
- See also
-
java.lang.System#arraycopy
- Source
- package.scala
Copy one array to another. Equivalent to Java's System.arraycopy(src, srcPos, dest, destPos, length)
, except that this also works for polymorphic and boxed arrays.
Copy one array to another. Equivalent to Java's System.arraycopy(src, srcPos, dest, destPos, length)
, except that this also works for polymorphic and boxed arrays.
Note that the passed-in dest
array will be modified by this call.
Value parameters
- dest
-
destination array.
- destPos
-
starting position in the destination array.
- length
-
the number of array elements to be copied.
- src
-
the source array.
- srcPos
-
starting position in the source array.
Attributes
- See also
-
java.lang.System#arraycopy
- Source
- package.scala
Attributes
- Source
- package.scala
Attributes
- Source
- package.scala
Attributes
- Source
- package.scala
Attributes
- Source
- package.scala
Attributes
- Source
- package.scala
Attributes
- Source
- package.scala
Attributes
- Source
- package.scala
Attributes
- Source
- package.scala
Attributes
- Source
- package.scala
Attributes
- Source
- package.scala
Exports
Defined exports
Attributes
- Source
- package.scala