Class FilterWorker

    • Method Detail

      • executeFilters

        public static <T extends IPrimitive & IFilterablePrimitive> boolean executeFilters​(Collection<T> all,
                                                                                           Filter... filters)
                                                                                    throws SearchParseError
        Apply the filters to the primitives of the data set.
        Type Parameters:
        T - The primitive type
        Parameters:
        all - the collection of primitives for that the filter state should be updated
        filters - the filters
        Returns:
        true, if the filter state (normal / disabled / hidden) of any primitive has changed in the process
        Throws:
        SearchParseError - if the search expression in a filter cannot be parsed
        Since:
        12383, 17862 (generics)
      • executeFilters

        public static <T extends IPrimitive & IFilterablePrimitive> boolean executeFilters​(Collection<T> all,
                                                                                           FilterMatcher filterMatcher)
        Apply the filters to the primitives of the data set.
        Type Parameters:
        T - The primitive type
        Parameters:
        all - the collection of primitives for that the filter state should be updated
        filterMatcher - the FilterMatcher
        Returns:
        true, if the filter state (normal / disabled / hidden) of any primitive has changed in the process
        Since:
        17862 (generics)
      • executeFilters

        public static <T extends IPrimitive & IFilterablePrimitive> boolean executeFilters​(T primitive,
                                                                                           FilterMatcher filterMatcher)
        Apply the filters to a single primitive.
        Type Parameters:
        T - the primitive type
        Parameters:
        primitive - the primitive
        filterMatcher - the FilterMatcher
        Returns:
        true, if the filter state (normal / disabled / hidden) of the primitive has changed in the process
        Since:
        17862 (generics)
      • clearFilterFlags

        public static <T extends IPrimitive & IFilterablePrimitive> boolean clearFilterFlags​(Collection<T> prims)
        Clear all filter flags, i.e. turn off filters.
        Type Parameters:
        T - the primitive type
        Parameters:
        prims - the primitives
        Returns:
        true, if the filter state (normal / disabled / hidden) of any primitive has changed in the process
        Since:
        12388 (signature)