private List<ICell> matches(Collection<ICell> list, String regex) { return new ArrayList<>(where(list, cell -> cell.getValue().matches(regex))); }
private List<ICell> contains(Collection<ICell> list, String value) { return new ArrayList<>(where(list, cell -> cell.getValue().contains(value))); } private List<ICell> matches(Collection<ICell> list, String regex) {
private List<ICell> contains(Collection<ICell> list, String value) { return new ArrayList<>(where(list, cell -> cell.getValue().contains(value))); } private List<ICell> matches(Collection<ICell> list, String regex) {
private List<ICell> contains(Collection<ICell> list, String value) { return new ArrayList<>(where(list, cell -> cell.getValue().contains(value))); } private List<ICell> matches(Collection<ICell> list, String regex) {
private List<ICell> matches(Collection<ICell> list, String regex) { return new ArrayList<>(where(list, cell -> cell.getValue().matches(regex))); }
private List<ICell> matches(Collection<ICell> list, String regex) { return new ArrayList<>(where(list, cell -> cell.getValue().matches(regex))); }
public List<ICell> cells(String value) { return new ArrayList<>(where(getCells(), cell -> cell.getValue().equals(value))); }
public List<ICell> cells(String value) { return new ArrayList<>(where(getCells(), cell -> cell.getValue().equals(value))); }
public ICell cellContains(String value, Column column) { int colIndex = column.get( columnName -> select(columns().headers(), String::toLowerCase).indexOf(columnName.toLowerCase()) + 1, num -> num); return columns().getColumn(colIndex).first((columnName, cell) -> cell.getValue().contains(value)); } public ICell cellMatch(String regex, Column column) {
public ICell cell(String value, Column column) { int colIndex = column.get( columnName -> select(columns().headers(), String::toLowerCase).indexOf(columnName.toLowerCase()) + 1, num -> num); return columns().getColumn(colIndex).first((columnName, cell) -> cell.getValue().equals(value)); } public ICell cellContains(String value, Column column) {
public ICell cell(String value, Column column) { int colIndex = column.get( columnName -> select(columns().headers(), String::toLowerCase).indexOf(columnName.toLowerCase()) + 1, num -> num); return columns().getColumn(colIndex).first((columnName, cell) -> cell.getValue().equals(value)); } public ICell cellContains(String value, Column column) {
public ICell cellContains(String value, Column column) { int colIndex = column.get( columnName -> select(columns().headers(), String::toLowerCase).indexOf(columnName.toLowerCase()) + 1, num -> num); return columns().getColumn(colIndex).first((columnName, cell) -> cell.getValue().contains(value)); } public ICell cellMatch(String regex, Column column) {
public ICell cell(String value, Column column) { int colIndex = column.get( name -> columns().headers().indexOf(name) + 1, num -> num); return columns().getColumn(colIndex).first((name, cell) -> cell.getValue().equals(value)); } public ICell cellContains(String value, Column column) {
public ICell cellContains(String value, Column column) { int colIndex = column.get( name -> columns().headers().indexOf(name) + 1, num -> num); return columns().getColumn(colIndex).first((name, cell) -> cell.getValue().contains(value)); } public ICell cellMatch(String regex, Column column) {
public ICell cellContains(String value, Row row) { int rowNum = row.hasName() ? rows().headers().indexOf(row.getName()) + 1 : row.getNum(); return rows().getRow(rowNum).first((name, cell) -> cell.getValue().contains(value)); } public ICell cellMatch(String regex, Row row) {
public ICell cellContains(String value, Row row) { int rowNum = row.hasName() ? rows().headers().indexOf(row.getName()) + 1 : row.getNum(); return rows().getRow(rowNum).first((rowName, cell) -> cell.getValue().contains(value)); } public ICell cellMatch(String regex, Row row) {
public ICell cell(String value, Row row) { int rowNum = row.hasName() ? rows().headers().indexOf(row.getName()) + 1 : row.getNum(); return rows().getRow(rowNum).first((rowName, cell) -> cell.getValue().equals(value)); } public ICell cellContains(String value, Row row) {
public ICell cellContains(String value, Row row) { int rowNum = row.hasName() ? rows().headers().indexOf(row.getName()) + 1 : row.getNum(); return rows().getRow(rowNum).first((rowName, cell) -> cell.getValue().contains(value)); } public ICell cellMatch(String regex, Row row) {
public ICell cell(String value, Row row) { int rowNum = row.hasName() ? rows().headers().indexOf(row.getName()) + 1 : row.getNum(); return rows().getRow(rowNum).first((rowName, cell) -> cell.getValue().equals(value)); } public ICell cellContains(String value, Row row) {
public ICell cell(String value, Row row) { int rowNum = row.hasName() ? rows().headers().indexOf(row.getName()) + 1 : row.getNum(); return rows().getRow(rowNum).first((name, cell) -> cell.getValue().equals(value)); } public ICell cellContains(String value, Row row) {