Class NOTFilter

  • All Implemented Interfaces:
    FilterBy

    public class NOTFilter
    extends Object
    implements FilterBy
    Negates a given filter.
    Author:
    Roxana Muresan
    • Constructor Detail

      • NOTFilter

        public NOTFilter​(@Nonnull
                         FilterBy filter)
        Constructor
        Parameters:
        filter - the filter to negate
    • Method Detail

      • filter

        public boolean filter​(@Nonnull
                              org.apache.sling.api.resource.Resource resource,
                              StringBuilder output)
        Description copied from interface: FilterBy
        Checks if the given resource matches the filter criteria.
        Specified by:
        filter in interface FilterBy
        Parameters:
        resource - resource
        output - output buffer
        Returns:
        matches