public final class RLArray
extends java.lang.Object
Constructor and Description |
---|
RLArray() |
Modifier and Type | Method and Description |
---|---|
static RLObject |
get(RLObject array,
int index)
Returns the value of the indexed component in the specified array object.
|
static int |
getLength(RLObject array)
Get length of RL array.
|
static RLObject |
newInstance(RLClass componentType,
int length)
Create new RL array instance.
|
static void |
set(RLObject array,
int index,
RLObject value)
Set the value of the indexed component in the specified array Object.
|
public static RLObject get(RLObject array, int index) throws RLIllegalArgumentException, RLArrayIndexOutOfBoundsException
RLIllegalArgumentException
RLArrayIndexOutOfBoundsException
public static void set(RLObject array, int index, RLObject value) throws RLIllegalArgumentException, RLArrayIndexOutOfBoundsException, RLArrayStoreException
array
- RLObject arrayindex
- array componentvalue
- new value of componentRLIllegalArgumentException
RLArrayIndexOutOfBoundsException
RLArrayStoreException
public static int getLength(RLObject array) throws RLIllegalArgumentException
RLIllegalArgumentException
public static RLObject newInstance(RLClass componentType, int length) throws RLNegativeArraySizeException
componentType
- RLClass of componentslength
- int >= 0RLNegativeArraySizeException