org.aksw.commons.collections
Class StackCartesianProductIterator<T>

java.lang.Object
  extended by org.aksw.commons.collections.StackCartesianProductIterator<T>
All Implemented Interfaces:
Iterator<List<T>>

public class StackCartesianProductIterator<T>
extends Object
implements Iterator<List<T>>

Author:
Claus Stadler Date: 7/6/11 Time: 10:46 PM

Constructor Summary
StackCartesianProductIterator(Iterable<? extends T>... collections)
           
StackCartesianProductIterator(List<? extends Iterable<? extends T>> collections)
           
StackCartesianProductIterator(T[]... collections)
           
 
Method Summary
 boolean canPush()
           
 boolean hasNext()
           
 List<T> next()
           
 void pop()
           
 void push()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StackCartesianProductIterator

public StackCartesianProductIterator(T[]... collections)

StackCartesianProductIterator

public StackCartesianProductIterator(Iterable<? extends T>... collections)

StackCartesianProductIterator

public StackCartesianProductIterator(List<? extends Iterable<? extends T>> collections)
Method Detail

canPush

public boolean canPush()

push

public void push()

pop

public void pop()

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator<List<T>>

next

public List<T> next()
Specified by:
next in interface Iterator<List<T>>

remove

public void remove()
Specified by:
remove in interface Iterator<List<T>>


Copyright © 2011. All Rights Reserved.