Package org.goplanit.data
Interface MultiKeyPlanItDataIterator
-
- All Known Implementing Classes:
MultiKeyPlanItDataIteratorImpl
public interface MultiKeyPlanItDataIterator extends Iterator<Object[]>
Iterator which returns the keys and values for each row in a MultiKeyPlanItData object.- Author:
- gman6028
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static MultiKeyPlanItDataIterator
getInstance(boolean isSingleKey, org.apache.commons.collections4.IterableMap<Object,Object[]> singleKeyMap, org.apache.commons.collections4.map.MultiKeyMap<Object,Object[]> multiKeyMap)
Returns an instance of a class which implements this interfaceObject[]
getKeys()
Returns an array of keys for the current iterationObject[]
getValues()
Returns an array of values for the current iterationboolean
hasNext()
Returns whether the MultiKeyPlanItData has any more rowsObject[]
next()
Returns the next array of keys in the iteration-
Methods inherited from interface java.util.Iterator
forEachRemaining, remove
-
-
-
-
Method Detail
-
hasNext
boolean hasNext()
Returns whether the MultiKeyPlanItData has any more rows
-
next
Object[] next()
Returns the next array of keys in the iteration
-
getKeys
Object[] getKeys()
Returns an array of keys for the current iteration- Returns:
- array of keys for the current iteration
-
getValues
Object[] getValues()
Returns an array of values for the current iteration- Returns:
- array of values for the current iteration
-
getInstance
static MultiKeyPlanItDataIterator getInstance(boolean isSingleKey, org.apache.commons.collections4.IterableMap<Object,Object[]> singleKeyMap, org.apache.commons.collections4.map.MultiKeyMap<Object,Object[]> multiKeyMap)
Returns an instance of a class which implements this interface- Parameters:
isSingleKey
- flag to indicate whether the MultiKeyPlanItData object has one key or severalsingleKeyMap
- Map used if the MultiKeyPlanItData object has one keymultiKeyMap
- Map used if the MultiKeyPlanItData object has several keys- Returns:
- a class which implements this interface
-
-