Class ExpressionEqualRowFilter

  • All Implemented Interfaces:
    Serializable, RecordFilter, RowFilter

    public class ExpressionEqualRowFilter
    extends RowInRecordFilter
    Judge if a row matches by evaluating a given expression on the row, based on a particular column, and checking the result. It's a match if the result is any one of a given list of values, or if the result is blank or error and we want blank or error values.
    See Also:
    Serialized Form
    • Field Detail

      • _columnName

        protected final String _columnName
      • _cellIndex

        protected final int _cellIndex
      • _matches

        protected final Set<String> _matches
      • _selectBlank

        protected final boolean _selectBlank
      • _selectError

        protected final boolean _selectError
      • _invert

        protected final boolean _invert
    • Constructor Detail

      • ExpressionEqualRowFilter

        public ExpressionEqualRowFilter​(RowEvaluable evaluable,
                                        String columnName,
                                        int cellIndex,
                                        Set<String> matches,
                                        boolean selectBlank,
                                        boolean selectError,
                                        boolean invert)
    • Method Detail

      • filterRow

        public boolean filterRow​(long rowIndex,
                                 Row row,
                                 Record record)
        Description copied from class: RowInRecordFilter
        Determines if a row matches the filter.
        Specified by:
        filterRow in class RowInRecordFilter
        Parameters:
        rowIndex - the global index of the row (from the entire grid)
        row - the row itself
        record - the enclosing record
        Returns:
        true if the row matches the filter
      • internalFilterRow

        public boolean internalFilterRow​(long rowIndex,
                                         Row row,
                                         Record record)
      • testValue

        protected boolean testValue​(Object v)