Class CompositeDatasetFilter

  • All Implemented Interfaces:
    DatasetFilter

    public class CompositeDatasetFilter
    extends Object
    implements DatasetFilter
    A dataset filter that wraps several other filters and applies them as a conjunction.
    Author:
    Lucian Chirita (lucianc@users.sourceforge.net)
    • Constructor Detail

      • CompositeDatasetFilter

        public CompositeDatasetFilter​(DatasetFilter... filters)
        Creates a conjunction for several filters.
        Parameters:
        filters - the filters
      • CompositeDatasetFilter

        public CompositeDatasetFilter​(List<? extends DatasetFilter> filters)
    • Method Detail

      • combine

        public static DatasetFilter combine​(DatasetFilter filter,
                                            DatasetFilter other)
        Combines two filter in a conjunction.
        Parameters:
        filter - the first filter
        other - the second filter
      • matches

        public boolean matches​(EvaluationType evaluation)
        Description copied from interface: DatasetFilter
        Determines whether the current row matches the filter criteria. Matching rows are included in the report, while non-matching rows are skipped.
        Specified by:
        matches in interface DatasetFilter
        Parameters:
        evaluation - the evaluation type. Currently only EvaluationType.ESTIMATED is used.
        Returns:
        true if the row is to be included in the report.