org.aksw.commons.collections.stacks.NestedStackIterator Maven / Gradle / Ivy
package org.aksw.commons.collections.stacks;
import java.util.Iterator;
public class NestedStackIterator>
implements Iterator
{
protected GenericNestedStack current;
public NestedStackIterator(GenericNestedStack current) {
super();
this.current = current;
}
@Override
public boolean hasNext() {
boolean result = current != null;
return result;
}
@Override
public T next() {
T result = current.value;
current = current.parent;
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy