com.annimon.stream.operator.ObjArray Maven / Gradle / Ivy
The newest version!
package com.annimon.stream.operator;
import com.annimon.stream.iterator.LsaIterator;
public class ObjArray extends LsaIterator {
private final T[] elements;
private int index;
public ObjArray(T[] elements) {
this.elements = elements;
index = 0;
}
@Override
public boolean hasNext() {
return index < elements.length;
}
@Override
public T nextIteration() {
return elements[index++];
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy