net.maizegenetics.util.AbstractTableReport Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tassel6 Show documentation
Show all versions of tassel6 Show documentation
TASSEL 6 is a software package to evaluate traits association. Feature Tables are at the heart of the package where, a feature is a range of positions or a single position. Row in the that table are taxon.
/*
* AbstractTableReport
*/
package net.maizegenetics.util;
/**
*
* @author Terry Casstevens
*/
public abstract class AbstractTableReport implements TableReport {
private long currentRowNumber = -1;
private Object[] currentRow = null;
@Override
public Object getValueAt(long row, int col) {
if (row != currentRowNumber) {
currentRowNumber = row;
currentRow = getRow(row);
}
return currentRow[col];
}
}