Package uk.ac.manchester.spinnaker.utils
Class DoubleMapIterable<V>
java.lang.Object
uk.ac.manchester.spinnaker.utils.DoubleMapIterable<V>
- Type Parameters:
V
- Class of the Object to be supplied by the final Iterator.
- All Implemented Interfaces:
Iterable<V>
,MappableIterable<V>
public final class DoubleMapIterable<V> extends Object implements MappableIterable<V>
An Iterable for a Map or Collection of Maps.
The type of the Keys of the maps is irrelevant. It is not even required that keys in each map are of the same type.
- Author:
- Christian-B
-
Constructor Summary
Constructors Constructor Description DoubleMapIterable(Iterable<? extends Map<?,V>> outer)
Create an Iterator give a Collection/Iterable of Maps .DoubleMapIterable(Map<?,? extends Map<?,V>> outermap)
Creates an Iterable given a Map of Maps. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface uk.ac.manchester.spinnaker.utils.MappableIterable
filter, first, first, map, nth, toCollectingMap, toCollectingMap, toCollectingMap, toCollectingMap, toList, toList, toMap, toMap, toSet, toSet
-
Constructor Details
-
DoubleMapIterable
Creates an Iterable given a Map of Maps.- Parameters:
outermap
- A double map with any type(s) as the keys.
-
DoubleMapIterable
Create an Iterator give a Collection/Iterable of Maps .- Parameters:
outer
- An iterable of Maps.
-
-
Method Details