Class ExpressionNumberComparisonRowFilter

  • All Implemented Interfaces:
    Serializable, RecordFilter, RowFilter
    Direct Known Subclasses:
    ExpressionTimeComparisonRowFilter

    public abstract class ExpressionNumberComparisonRowFilter
    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 satisfies some numeric comparisons, or if the result is non-numeric or blank or error and we want non-numeric or blank or error values.
    See Also:
    Serialized Form
    • Field Detail

      • _selectNumeric

        protected final boolean _selectNumeric
      • _selectNonNumeric

        protected final boolean _selectNonNumeric
      • _selectBlank

        protected final boolean _selectBlank
      • _selectError

        protected final boolean _selectError
    • Constructor Detail

      • ExpressionNumberComparisonRowFilter

        public ExpressionNumberComparisonRowFilter​(RowEvaluable rowEvaluable,
                                                   boolean selectNumeric,
                                                   boolean selectNonNumeric,
                                                   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
      • checkValue

        protected boolean checkValue​(Object v)
      • checkValue

        protected abstract boolean checkValue​(double d)