public final class ArraysUtil
extends java.lang.Object
Constructor and Description |
---|
ArraysUtil() |
Modifier and Type | Method and Description |
---|---|
static IRubyObject[] |
copyOf(IRubyObject[] source,
int length)
Returns a copy of an array of IRubyObject type.
|
public static IRubyObject[] copyOf(IRubyObject[] source, int length)
source
- an array to be copiedjava.lang.NegativeArraySizeException
- if the length is negativejava.lang.NullPointerException
- if the source is nullCopyright © 2002-2009 JRuby Team. All Rights Reserved.