webit.script.util.collection.IntArrayIterAdapter Maven / Gradle / Ivy
// Copyright (c) 2013, Webit Team. All Rights Reserved.
package webit.script.util.collection;
/**
*
* @author Zqq
*/
public class IntArrayIterAdapter extends AbstractIter {
private final int [] array;
private final int max;
public IntArrayIterAdapter(int[] array) {
this.array = array;
this.max = array.length - 1;
}
protected Integer _next() {
return array[_index];
}
public boolean hasNext() {
return _index < max;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy