Class PathFinder.OrFilter

  • Enclosing class:
    PathFinder

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

    This is a lazy or-filter, i.e. if one of the filters accepts 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.

    See PathFinder.or(Filter[]).

    • Field Detail

      • filters

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