Ignore:
Timestamp:
2017-06-10T00:50:51+02:00 (7 years ago)
Author:
Don-vip
Message:

see #14929 - new methods to ease the direct handling of filters

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/FilterMatcher.java

    r12121 r12383  
    325325    }
    326326
     327    /**
     328     * Returns a new {@code FilterMatcher} containing the given filters.
     329     * @param filters filters to add to the resulting filter matcher
     330     * @return a new {@code FilterMatcher} containing the given filters
     331     * @throws ParseError if the search expression in a filter cannot be parsed
     332     * @since 12383
     333     */
     334    public static FilterMatcher of(Filter... filters) throws ParseError {
     335        FilterMatcher result = new FilterMatcher();
     336        for (Filter filter : filters) {
     337            result.add(filter);
     338        }
     339        return result;
     340    }
    327341}
Note: See TracChangeset for help on using the changeset viewer.