Class OrFilter

  • All Implemented Interfaces:
    TransformableFilter

    public class OrFilter
    extends java.lang.Object
    implements TransformableFilter
    A filter that combines zero or more other filters using a logical OR.
    Since:
    3.0
    Author:
    Robert Scholte
    See Also:
    OrDependencyFilter, OrDependencyFilter
    • Constructor Summary

      Constructors 
      Constructor Description
      OrFilter​(java.util.Collection<TransformableFilter> filters)
      The default constructor specifying a collection of filters of which at least one must match.
    • Constructor Detail

      • OrFilter

        public OrFilter​(java.util.Collection<TransformableFilter> filters)
        The default constructor specifying a collection of filters of which at least one must match.
        Parameters:
        filters - the filters, may not be null
    • Method Detail

      • getFilters

        public java.util.Collection<TransformableFilter> getFilters()
        Get the filters
        Returns:
        the filters, never null
      • transform

        public <T> T transform​(FilterTransformer<T> transformer)
        Transform this filter to a tool specific implementation
        Specified by:
        transform in interface TransformableFilter
        Type Parameters:
        T - the interface of the tool specific filter
        Parameters:
        transformer - the transformer, may not be null
        Returns:
        the transformed value, never null