Class PathFinder.AndFilter

  • Enclosing class:
    PathFinder

    static class PathFinder.AndFilter
    extends PathFinder.Filter
    One of the logical operations of filters: Returns a filter which passes a path iff all original filters in filters do so.

    This is a lazy and-filter, i.e. if one of the filters rejects the path, the filters later in the sequence are not executed any more. So the ordering has an effect, if one of the filters has a side effect. Ordering may also affect performance.

    Maybe lazy and-filters are not so useful, because, unlike non-lazy and-filters and or-filters, they could be realized as a sequence of filters.

    See PathFinder.and(Filter[]).

    • Field Detail

      • filters

        private final PathFinder.Filter[] filters
        This filter passes a path iff all of these pass if invoked in the natural ordering.
    • Method Detail