Package org.drip.spaces.iterator
Class IterationHelper
java.lang.Object
org.drip.spaces.iterator.IterationHelper
public class IterationHelper
extends java.lang.Object
IterationHelper contains the Functionality that helps perform Checked Multidimensional Iterative
Scans.
It provides the following Functionality:
- Scan through the Integer Array looking for a repeating Index
- Display the Contents of the Index Array
- Compose a String constructed from the specified Array Index
- Author:
- Lakshmi Krishnamurthy
-
Constructor Summary
Constructors Constructor Description IterationHelper()
-
Method Summary
Modifier and Type Method Description static boolean
CheckForRepeatingIndex(int[] indexArray)
Scan through the Integer Array looking for a repeating Indexstatic java.lang.String
ComposeFromIndex(java.lang.String master, int[] indexArray)
Compose a String constructed from the specified Array Indexstatic void
DumpIndexArray(java.lang.String prefix, int[] indexArray)
Display the Contents of the Index ArrayMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
IterationHelper
public IterationHelper()
-
-
Method Details
-
CheckForRepeatingIndex
public static final boolean CheckForRepeatingIndex(int[] indexArray)Scan through the Integer Array looking for a repeating Index- Parameters:
indexArray
- The Index Array- Returns:
- TRUE - A Repeating Index exists
-
DumpIndexArray
public static final void DumpIndexArray(java.lang.String prefix, int[] indexArray)Display the Contents of the Index Array- Parameters:
prefix
- The Dump PrefixindexArray
- The Index Array
-
ComposeFromIndex
public static final java.lang.String ComposeFromIndex(java.lang.String master, int[] indexArray)Compose a String constructed from the specified Array Index- Parameters:
master
- The Master StringindexArray
- The Index Array- Returns:
- The Composed String
-