net.intelie.pipes.ArrayRowList Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pipes-api Show documentation
Show all versions of pipes-api Show documentation
Intelie Pipes' API classes and interfaces
package net.intelie.pipes;
import java.util.Arrays;
import java.util.Iterator;
import java.util.List;
public class ArrayRowList extends AbstractRowList {
private static final long serialVersionUID = 1L;
private final List rows;
public ArrayRowList(Row... rows) {
this(Arrays.asList(rows));
}
public ArrayRowList(List rows) {
this.rows = rows;
}
@Override
public Iterator iterator() {
return rows.iterator();
}
@Override
public Row get(int i) {
return rows.get(i);
}
@Override
public int size() {
return rows.size();
}
}