de.fuberlin.wiwiss.d2rq.fastpath
Class CombinationIterator

java.lang.Object
  extended by de.fuberlin.wiwiss.d2rq.fastpath.CombinationIterator
All Implemented Interfaces:
Iterator

public class CombinationIterator
extends Object
implements Iterator

Iterates over combinations of elements from several arrays. The input is an array of arrays. Each iteration step will return an array that contains exactly one item from each of the input arrays. The iterator will step through all possible combinations.

Version:
$Id: CombinationIterator.java,v 1.1 2006/10/16 12:46:00 cyganiak Exp $
Author:
Richard Cyganiak (richard@cyganiak.de)

Constructor Summary
CombinationIterator(Object[][] elements)
           
 
Method Summary
 boolean hasNext()
           
 Object next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CombinationIterator

public CombinationIterator(Object[][] elements)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator

next

public Object next()
Specified by:
next in interface Iterator

remove

public void remove()
Specified by:
remove in interface Iterator