com.varankin.io.stream
Class Chain<Atom>

java.lang.Object
  extended by com.varankin.io.stream.Chain<Atom>
All Implemented Interfaces:
java.lang.Iterable<Atom>

public class Chain<Atom>
extends java.lang.Object
implements java.lang.Iterable<Atom>

This object creates a new iterable source of Atom's, combined from Atom's received from every instance of repository provided by external factory.

Author:
© 2010 Nikolai Varankine

Constructor Summary
Chain(java.util.Iterator<java.lang.Iterable<Atom>> aFactory)
           
 
Method Summary
 java.util.Iterator<Atom> iterator()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Chain

public Chain(java.util.Iterator<java.lang.Iterable<Atom>> aFactory)
Parameters:
aFactory - provide of Atom repositories.
Method Detail

iterator

public final java.util.Iterator<Atom> iterator()
Specified by:
iterator in interface java.lang.Iterable<Atom>