Class AggregatedFilter<T>

  • All Implemented Interfaces:
    Filter<T>

    public class AggregatedFilter<T>
    extends Object
    implements Filter<T>
    Accepts only those data accepted by all the delegate filters. This filter will invoke filters in the same order as they specified in the constructor.
    Author:
    Sergey.Anchipolevsky Date: 20.08.2007
    • Constructor Detail

      • AggregatedFilter

        public AggregatedFilter​(@NotNull
                                Filter<? super T>... delegates)
      • AggregatedFilter

        public AggregatedFilter()
      • AggregatedFilter

        public AggregatedFilter​(@NotNull
                                List<Filter<? super T>> delegates)
    • Method Detail

      • accept

        public boolean accept​(@NotNull
                              T data)
        Description copied from interface: Filter
        Determines whether the given data satisfies implementation specific criteria.
        Specified by:
        accept in interface Filter<T>
        Parameters:
        data - the data being assessed
        Returns:
        true if data satisfies the criteria. False otherwise.