Package com.softwaremining.platformutils
Class ArrayUtility
java.lang.Object
com.softwaremining.platformutils.ArrayUtility
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final Objectfor internal use onlystatic final ObjectgetPrimitive(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 voidstatic final voidsetPrimitive(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
-