Class AbstractJunctionFilter

  • All Implemented Interfaces:
    Filter
    Direct Known Subclasses:
    And, Or

    public abstract class AbstractJunctionFilter
    extends AbstractFilter
    Abstract class for composite filters
    Author:
    bas.rutten
    • Constructor Detail

      • AbstractJunctionFilter

        public AbstractJunctionFilter​(Filter... filters)
        Constructor
        Parameters:
        filters -
      • AbstractJunctionFilter

        public AbstractJunctionFilter​(Collection<Filter> filters)
        Constructor
        Parameters:
        filters -
    • Method Detail

      • getFilters

        public List<Filter> getFilters()
        Returns an collection of the sub-filters of this composite filter.
        Returns:
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • remove

        public void remove​(Filter filter)
        Removes a filter
        Parameters:
        filter - the filter to remove
      • replace

        public void replace​(Filter oldFilter,
                            Filter newFilter,
                            boolean firstOnly)
        Replaces a filter by a new filter. Does nothing if the old filter is not found
        Parameters:
        oldFilter - the filter that must be replaced
        newFilter - the filter that must replace the old filter
        firstOnly - indicates whether only the first match must be replaced