public abstract class ArraySupport extends Object
Modifier and Type | Method and Description |
---|---|
static void |
copy(Object[] src,
int srcOff,
Object[] dst,
int dstOff,
int length) |
static void |
copy(Object[] src,
Object[] dst,
int dstOff,
int length)
Copy a source array into a destination array.
|
static Class[] |
newCopy(Class[] src,
int length) |
static IRubyObject[] |
newCopy(IRubyObject[] src,
int length) |
static IRubyObject[] |
newCopy(IRubyObject[] src,
int srcOff,
int length) |
static IRubyObject[] |
newCopy(IRubyObject[] src,
IRubyObject last) |
static IRubyObject[] |
newCopy(IRubyObject first,
IRubyObject[] src) |
static Object[] |
newCopy(Object[] src,
int length) |
static Object[] |
newCopy(Object[] src,
Object last) |
public static void copy(Object[] src, Object[] dst, int dstOff, int length)
src
- dst
- dstOff
- off set to start copying tolength
- copied array lengthpublic static IRubyObject[] newCopy(IRubyObject[] src, int length)
public static IRubyObject[] newCopy(IRubyObject[] src, int srcOff, int length)
public static IRubyObject[] newCopy(IRubyObject[] src, IRubyObject last)
public static IRubyObject[] newCopy(IRubyObject first, IRubyObject[] src)
Copyright © 2001-2017 JRuby. All Rights Reserved.