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

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

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

/**
 *
 * @author Zqq
 */
public final class CharSequenceIter extends AbstractArrayIter {

    private final CharSequence chars;

    public CharSequenceIter(CharSequence chars) {
        super(chars.length() - 1);
        this.chars = chars;
    }

    @Override
    public Object next() {
        return chars.charAt(++_index);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy