Bases: TASSELpy.java.lang.Object.Object
public final class Array extends Object
The Array class provides static methods to dynamically create and access Java arrays
Array permits widening conversions to occur during a get or set operation, but throws an IllegalArgumentException if a narrowing conversion would occur
Methods
castTo(pyType) | Casts this object to another java/python type |
clone(*args) | Creates and returns a copy of this object |
equals(*args) | Indicates whether some other object is “equal to” this one |
get(*args) | Returns the value of the indexed component in the specified array object |
getArray(size) | Gets an empty wrapped java array that can accept the type of the wrapped |
getBoolean(*args) | Returns the value of the indexed component in the specified array object, as a boolean |
getByte(*args) | Returns the value of the indexed component in the specified array object, as a byte |
getChar(*args) | Returns the value of the indexed component in the specified array object, as a char |
getClass(*args) | Returns the runtime class of this Object. |
getDblArray(rows[, cols]) | Gets an empty wrapped java array that can accept the type of other wrapped java arrays: i.e. |
getDouble(*args) | Returns the value of the indexed component in the specified array object, as a double |
getFloat(*args) | Returns the value of the indexed component in the specified array object, as a float |
getInt(*args) | Returns the value of the indexed component in the specified array object, as a int |
getLength(*args) | Returns the length of the specified array object, as an int |
getLong(*args) | Returns the value of the indexed component in the specified array object, as a long |
getShort(*args) | Returns the value of the indexed component in the specified array object, as a short |
hashCode(*args) | Returns a hash code vlaue for the object |
set(*args) | Sets the vlaue of the indexed component of the specified array object ot the specified new value |
setBoolean(*args) | Sets the value of the indexed component of the specified array object to the specified boolean |
setByte(*args) | Sets the value of the indexed component of the specified array object to the specified byte |
setDouble(*args) | Sets the value of the indexed component of the specified array object to the specified double |
setFloat(*args) | Sets the value of the indexed component of the specified array object to the specified float |
setInt(*args) | Sets the value of the indexed component of the specified array object to the specified int |
setLong(*args) | Sets the value of the indexed component of the specified array object to the specified long |
toString(*args) | Returns a string representation of the object |
wrap_existing_array(arr_instance) | Wraps a java array of this class’s type |
Returns the value of the indexed component in the specified array object
Signature: | get (Object array, int index) |
---|---|
Parameters: |
|
Returns: | The object you want to get |
Return type: | Object |
Returns the value of the indexed component in the specified array object, as a boolean
Signatures:
static boolean getBoolean(Object array, int index)
Argumnts:
array – The array index – The index of the boolean you want to get
Returns:
The value as a boolean
Returns the value of the indexed component in the specified array object, as a byte
Signatures:
static byte getByte(Object array, int index)
Argumnts:
array – The array index – The index of the byte you want to get
Returns:
The value as a byte
Returns the value of the indexed component in the specified array object, as a char
Signatures:
static char getChar(Object array, int index)
Argumnts:
array – The array index – The index of the char you want to get
Returns:
The value as a char
Returns the value of the indexed component in the specified array object, as a double
Signatures:
static double getDouble(Object array, int index)
Argumnts:
array – The array index – The index of the double you want to get
Returns:
The value as a double
Returns the value of the indexed component in the specified array object, as a float
Signatures:
static float getFloat(Object array, int index)
Argumnts:
array – The array index – The index of the float you want to get
Returns:
The value as a float
Returns the value of the indexed component in the specified array object, as a int
Signatures:
static int getInt(Object array, int index)
Argumnts:
array – The array index – The index of the int you want to get
Returns:
The value as a int
Returns the length of the specified array object, as an int
Signature: | getLength (Object array) |
---|---|
Parameters: | array (Object) – The array |
Returns: | The length of the array |
Return type: | int |
Returns the value of the indexed component in the specified array object, as a long
Signatures:
static long getLong(Object array, int index)
Argumnts:
array – The array index – The index of the long you want to get
Returns:
The value as a long
Returns the value of the indexed component in the specified array object, as a short
Signatures:
static short getShort(Object array, int index)
Argumnts:
array – The array index – The index of the short you want to get
Returns:
The value as a short
Sets the vlaue of the indexed component of the specified array object ot the specified new value
Signature: | set (Object array, int index, Object value) |
---|---|
Parameters: |
|
Sets the value of the indexed component of the specified array object to the specified boolean value
Signature: | setBoolean (Object array, int index, boolean v) |
---|---|
Parameters: |
|
Sets the value of the indexed component of the specified array object to the specified byte value
Signature: | setByte (Object array, int index, byte v) |
---|---|
Parameters: |
|
Sets the value of the indexed component of the specified array object to the specified double value
Signature: | setDouble (Object array, int index, double v) |
---|---|
Parameters: |
|
Sets the value of the indexed component of the specified array object to the specified float value
Signature: | setFloat (Object array, int index, float v) |
---|---|
Parameters: |
|