Package com.softwaremining.platformutils
Class ArrayUtility
java.lang.Object
com.softwaremining.platformutils.ArrayUtility
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic final Object
for internal use onlystatic final Object
getPrimitive
(Object arrObj, int[] position) Given an array object arrObj[][][], get the element at position { 1, 2, 3 } This is used primarily in dynamic access to arrays - ie when we don't know what is the lenght or dimensions of the array (1 dim or 6 dim )static final void
static final void
setPrimitive
(Object arrObj, int[] position, Object value) Given an array object arrObj[][][], get the element at position { 1, 2, 3 } This is used primarily in dynamic access to arrays - ie when we don't know what is the lenght or dimensions of the array (1 dim or 6 dim )
-
Constructor Details
-
ArrayUtility
public ArrayUtility()
-
-
Method Details
-
getPrimitive
Given an array object arrObj[][][], get the element at position { 1, 2, 3 } This is used primarily in dynamic access to arrays - ie when we don't know what is the lenght or dimensions of the array (1 dim or 6 dim )- Parameters:
arrObj
- - the Array Objectposition
- - e.g. {1 , 2 , 3} would refer to argObj[1][2][3]- Returns:
- - value in position.
-
get
for internal use only- Parameters:
arrObj
-position
-- Returns:
-
setPrimitive
Given an array object arrObj[][][], get the element at position { 1, 2, 3 } This is used primarily in dynamic access to arrays - ie when we don't know what is the lenght or dimensions of the array (1 dim or 6 dim )- Parameters:
arrObj
- - the Array Objectposition
- - e.g. {1 , 2 , 3} would refer to argObj[1][2][3]value
- - the target value
-
set
-