webit.script.lang.iter.CharSequenceIter Maven / Gradle / Ivy
// 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 - 2025 Weber Informatics LLC | Privacy Policy