java.lang.Object
com.ibm.j9ddr.util.IteratorHelpers
Utility functions for working with iterators
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic interfaceInterface for filtering iterators
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic <T> Iterator<T>combineIterators(Iterator<T>... iterators) Takes a list of iterators and returns one iterator that iterates over each iterator in turn.static <T> Iterator<T>filterIterator(Iterator<T> it, IteratorHelpers.IteratorFilter<T> filter) Filters an iteratorstatic <T> List<T>
- 
Constructor Details- 
IteratorHelperspublic IteratorHelpers()
 
- 
- 
Method Details- 
combineIteratorsTakes a list of iterators and returns one iterator that iterates over each iterator in turn.
- 
toList
- 
filterIteratorpublic static <T> Iterator<T> filterIterator(Iterator<T> it, IteratorHelpers.IteratorFilter<T> filter) Filters an iterator- Type Parameters:
- T- Generic type of iterator
- Parameters:
- it- Iterator to be filtered
- filter- Filter object to select which objects to be passed through
- Returns:
- Filtered iterator
 
 
-