Package org.drip.spaces.iterator
Class SequenceIndexIterator
java.lang.Object
org.drip.spaces.iterator.SequenceIndexIterator
public class SequenceIndexIterator
extends java.lang.Object
SequenceIndexIterator contains the Functionality to iterate through a List of Sequence Indexes.
It provides the following Functionality:
- Create a Standard Sequence/Index Iterator
- SequenceIndexIterator Constructor
- Retrieve the First Cursor
- Retrieve the Next Cursor
- Retrieve the Size of the Iterator
- Author:
- Lakshmi Krishnamurthy
-
Constructor Summary
Constructors Constructor Description SequenceIndexIterator(int[] maximumEntriesPerIndexArray, boolean cycle)SequenceIndexIterator Constructor -
Method Summary
Modifier and Type Method Description int[]first()Retrieve the First Cursorint[]next()Retrieve the Next Cursorintsize()Retrieve the Size of the Iteratorstatic SequenceIndexIteratorStandard(int sequenceCount, int indexPerVariableSequence)Create a Standard Sequence/Index IteratorMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
SequenceIndexIterator
public SequenceIndexIterator(int[] maximumEntriesPerIndexArray, boolean cycle) throws java.lang.ExceptionSequenceIndexIterator Constructor- Parameters:
maximumEntriesPerIndexArray- Maximum Entries per Indexcycle- TRUE - Cycle around the Index Entries- Throws:
java.lang.Exception- Thrown if Inputs are invalid
-
-
Method Details
-
Standard
public static final SequenceIndexIterator Standard(int sequenceCount, int indexPerVariableSequence)Create a Standard Sequence/Index Iterator- Parameters:
sequenceCount- Number Variable SequencesindexPerVariableSequence- Number of Indexes per Variable Sequence- Returns:
- The Sequence/Index Iterator Instance
-
first
public int[] first()Retrieve the First Cursor- Returns:
- The First Cursor
-
next
public int[] next()Retrieve the Next Cursor- Returns:
- The Next Cursor
-
size
public int size()Retrieve the Size of the Iterator- Returns:
- Size of the Iterator
-