www.sdmetrics.com

com.sdmetrics.math
Class MappedCollectionsIterator<T>

java.lang.Object
  extended by com.sdmetrics.math.MappedCollectionsIterator<T>
Type Parameters:
T - Type of the elements contained in the collections.
All Implemented Interfaces:
java.util.Iterator<T>

public class MappedCollectionsIterator<T>
extends java.lang.Object
implements java.util.Iterator<T>

Iterates over the elements contained in multiple collections, which are organized as values in a map.


Constructor Summary
MappedCollectionsIterator(java.util.Map<?,? extends java.util.Collection<T>> map)
           
 
Method Summary
 boolean hasNext()
           
 T next()
           
 void remove()
          Throws an UnsupportedOperationException.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MappedCollectionsIterator

public MappedCollectionsIterator(java.util.Map<?,? extends java.util.Collection<T>> map)
Parameters:
map - The map containing the collections.
Method Detail

remove

public void remove()
Throws an UnsupportedOperationException.

Specified by:
remove in interface java.util.Iterator<T>
Throws:
java.lang.UnsupportedOperationException - Remove not supported by this iterator.

next

public T next()
Specified by:
next in interface java.util.Iterator<T>

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator<T>

www.sdmetrics.com