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

webit.script.util.collection.AbstractIter Maven / Gradle / Ivy

There is a newer version: 1.5.2
Show newest version
// Copyright (c) 2013, Webit Team. All Rights Reserved.
package webit.script.util.collection;

/**
 *
 * @author Zqq
 */
public abstract class AbstractIter implements Iter {

    protected int _index = -1;

    public E next() {
        ++_index;
        return _next();
    }

    protected abstract E _next();

    public boolean isFirst() {
        return _index == 0;
    }

    public int index() {
        return _index;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy