io.annot8.common.data.content.Table Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of annot8-common-data Show documentation
Show all versions of annot8-common-data Show documentation
Common data (bounds and content) definitions
The newest version!
/* Annot8 (annot8.io) - Licensed under Apache-2.0. */
package io.annot8.common.data.content;
import java.util.List;
import java.util.Optional;
import java.util.stream.Stream;
public interface Table {
/** @return number of columns in the table */
int getColumnCount();
/** @return number of rows in the table */
int getRowCount();
Optional> getColumnNames();
Stream getRows();
default Optional getRow(int index) {
return getRows().filter(row -> row.getRowIndex() == index).findFirst();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy