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

net.intelie.pipes.ArrayRowList Maven / Gradle / Ivy

There is a newer version: 0.25.5
Show newest version
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();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy