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

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

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

Derived from StackCartesianProductIterator it = new StackCartesianProductIterator(a, b,c);


Constructor Summary
DescenderIterator(T base, Descender<T> descender)
           
 
Method Summary
 boolean canDescend()
           
 void descend()
          Set the iterator to the children of the current node.
static
<T> List<Integer>
getIndexesOfEmptySubIterables(List<? extends Iterable<? extends T>> iterables)
           
 boolean hasNext()
           
 void loadChildren()
           
 List<T> next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DescenderIterator

public DescenderIterator(T base,
                         Descender<T> descender)
Method Detail

getIndexesOfEmptySubIterables

public static <T> List<Integer> getIndexesOfEmptySubIterables(List<? extends Iterable<? extends T>> iterables)

loadChildren

public void loadChildren()

canDescend

public boolean canDescend()

descend

public void descend()
Set the iterator to the children of the current node.


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 © 2012. All Rights Reserved.