Changeset 13887 in josm for trunk/src


Ignore:
Timestamp:
2018-06-04T00:50:29+02:00 (6 years ago)
Author:
Don-vip
Message:

see #16335 - code simplification, javadoc

Location:
trunk/src/org/openstreetmap/josm/data/osm/search
Files:
2 edited

Legend:

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

    r13876 r13887  
    8989    }
    9090
     91    /**
     92     * Constructs a new {@code SearchCompiler}.
     93     * @param caseSensitive {@code true} to perform a case-sensitive search
     94     * @param regexSearch {@code true} to perform a regex-based search
     95     * @param tokenizer to split the search string into tokens
     96     */
    9197    public SearchCompiler(boolean caseSensitive, boolean regexSearch, PushbackTokenizer tokenizer) {
    9298        this.caseSensitive = caseSensitive;
     
    276282         */
    277283        public boolean match(Tagged tagged) {
    278             return tagged instanceof OsmPrimitive ? match((OsmPrimitive) tagged) : false;
     284            return tagged instanceof OsmPrimitive && match((OsmPrimitive) tagged);
    279285        }
    280286
  • trunk/src/org/openstreetmap/josm/data/osm/search/SearchSetting.java

    r12659 r13887  
    1414 */
    1515public class SearchSetting {
     16    /** Search text */
    1617    public String text;
     18    /** Search mode */
    1719    public SearchMode mode;
     20    /** {@code true} to perform a case-sensitive search */
    1821    public boolean caseSensitive;
     22    /** {@code true} to perform a regex-based search */
    1923    public boolean regexSearch;
     24    /** {@code true} to execute a MapCSS selector */
    2025    public boolean mapCSSSearch;
     26    /** {@code true} to include all objects (even incomplete and deleted ones) */
    2127    public boolean allElements;
    2228
Note: See TracChangeset for help on using the changeset viewer.