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

webit.script.lang.iter.IteratorIter Maven / Gradle / Ivy

The newest version!
// Copyright (c) 2013-2014, Webit Team. All Rights Reserved.
package webit.script.lang.iter;

import java.util.Iterator;

/**
 *
 * @author Zqq
 */
public final class IteratorIter extends AbstractIter {

    private final Iterator iterator;

    public IteratorIter(Iterator iterator) {
        this.iterator = iterator;
    }

    @Override
    protected Object _next() {
        return iterator.next();
    }

    public boolean hasNext() {
        return iterator.hasNext();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy