All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.aksw.commons.collections.stacks.NestedStackIterator Maven / Gradle / Ivy

There is a newer version: 0.9.9
Show newest version
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