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 Details

    • DoubleMapIterable

      public DoubleMapIterable​(Map<?,​? extends Map<?,​V>> outermap)
      Creates an Iterable given a Map of Maps.
      Parameters:
      outermap - A double map with any type(s) as the keys.
    • DoubleMapIterable

      public DoubleMapIterable​(Iterable<? extends Map<?,​V>> outer)
      Create an Iterator give a Collection/Iterable of Maps .
      Parameters:
      outer - An iterable of Maps.
  • Method Details