Class ArrayUtility

java.lang.Object
com.softwaremining.platformutils.ArrayUtility

public final class ArrayUtility extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static final Object
    get(Object arrObj, int[] position)
    for internal use only
    static 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
    set(Object arrObj, int[] position, Object value)
     
    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 )

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ArrayUtility

      public ArrayUtility()
  • Method Details

    • getPrimitive

      public static 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 )
      Parameters:
      arrObj - - the Array Object
      position - - e.g. {1 , 2 , 3} would refer to argObj[1][2][3]
      Returns:
      - value in position.
    • get

      public static final Object get(Object arrObj, int[] position)
      for internal use only
      Parameters:
      arrObj -
      position -
      Returns:
    • setPrimitive

      public 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 )
      Parameters:
      arrObj - - the Array Object
      position - - e.g. {1 , 2 , 3} would refer to argObj[1][2][3]
      value - - the target value
    • set

      public static final void set(Object arrObj, int[] position, Object value)