@Test public void testMatches() { String columnName = "column"; String filterText = "bLah"; ColumnFilter filter = new ColumnFilter(columnName, filterText); Row row = Row.builder().put(columnName, "BlaHah").build(); assertTrue(filter.matches(row)); }
public boolean matches(@Nonnull Row row) { return row.get(_column).toString().toLowerCase().contains(_filterText.toLowerCase()); }
ColumnFilter { public boolean matches(@Nonnull Row row) { return row.get(_column).toString().toLowerCase().contains(_filterText.toLowerCase()); } }
ColumnFilter { public boolean matches(@Nonnull Row row) { return row.get(_column).toString().toLowerCase().contains(_filterText.toLowerCase()); } ColumnFilter(@Nonnull String column, @Nonnull String filterText); }
ColumnFilter { public boolean matches(@Nonnull Row row) { return row.get(_column).toString().toLowerCase().contains(_filterText.toLowerCase()); } ColumnFilter(@Nonnull String column, @Nonnull String filterText); @Override boolean equals(@Nullable Object obj); @JsonProperty(PROP_COLUMN) @Nonnull String getColumn(); @JsonProperty(PROP_FILTER_TEXT) @Nonnull String getFilterText(); @Override int hashCode(); boolean matches(@Nonnull Row row); @Override String toString(); }
ColumnFilter { public boolean matches(@Nonnull Row row) { return row.get(_column).toString().toLowerCase().contains(_filterText.toLowerCase()); } ColumnFilter(@Nonnull String column, @Nonnull String filterText); @Override boolean equals(@Nullable Object obj); @JsonProperty(PROP_COLUMN) @Nonnull String getColumn(); @JsonProperty(PROP_FILTER_TEXT) @Nonnull String getFilterText(); @Override int hashCode(); boolean matches(@Nonnull Row row); @Override String toString();  }