summaryrefslogtreecommitdiff
path: root/src/library/scala/compat/Platform.scala
diff options
context:
space:
mode:
authorGilles Dubochet <gilles.dubochet@epfl.ch>2010-07-28 11:26:15 +0000
committerGilles Dubochet <gilles.dubochet@epfl.ch>2010-07-28 11:26:15 +0000
commitbc0ed202b6006ee8e3ccdf71b800ed99246437a8 (patch)
treef4e6c596ff796bef07f7f3dd6e2174f609cb2e9a /src/library/scala/compat/Platform.scala
parent9d3eef33c58ff9135ea0f104cd11dd5d4af6c54e (diff)
downloadscala-bc0ed202b6006ee8e3ccdf71b800ed99246437a8.tar.gz
scala-bc0ed202b6006ee8e3ccdf71b800ed99246437a8.tar.bz2
scala-bc0ed202b6006ee8e3ccdf71b800ed99246437a8.zip
[docs] Documentation updates contributed throug...
[docs] Documentation updates contributed through Colladoc. No review.
Diffstat (limited to 'src/library/scala/compat/Platform.scala')
-rw-r--r--src/library/scala/compat/Platform.scala24
1 files changed, 17 insertions, 7 deletions
diff --git a/src/library/scala/compat/Platform.scala b/src/library/scala/compat/Platform.scala
index bf402a7968..8187360d6f 100644
--- a/src/library/scala/compat/Platform.scala
+++ b/src/library/scala/compat/Platform.scala
@@ -17,13 +17,23 @@ object Platform {
type StackOverflowError = java.lang.StackOverflowError
type ConcurrentModificationException = java.util.ConcurrentModificationException
- /**
- * @param src ..
- * @param srcPos ..
- * @param dest ..
- * @param destPos ..
- * @param length ..
- */
+ /** Copies `length` elements of array `src` starting at position `srcPos` to the
+ * array `dest` starting at position `destPos`. If `src eq dest`, the copying will
+ * behave as if the elements copied from `src` were first copied to a temporary
+ * array before being copied back into the array at the destination positions.
+ * @param src A non-null array as source for the copy.
+ * @param srcPos The starting index in the source array.
+ * @param dest A non-null array as destination for the copy.
+ * @param destPos The starting index in the destination array.
+ * @param length The number of elements to be copied.
+ * @throws java.lang.NullPointerException If either `src` or `dest` are `null`.
+ * @throws java.lang.ArrayStoreException If either `src` or `dest` are not of type
+ * [java.lang.Array]; or if the element type of `src` is not
+ * compatible with that of `dest`.
+ * @throws java.lang.IndexOutOfBoundsException If either srcPos` or `destPos` are
+ * outside of the bounds of their respective arrays; or if `length`
+ * is negative; or if there are less than `length` elements available
+ * after `srcPos` or `destPos` in `src` and `dest` respectively. */
@inline
def arraycopy(src: AnyRef, srcPos: Int, dest: AnyRef, destPos: Int, length: Int) {
System.arraycopy(src, srcPos, dest, destPos, length)