Class SearchCompiler.Not
- java.lang.Object
-
- org.openstreetmap.josm.data.osm.search.SearchCompiler.Match
-
- org.openstreetmap.josm.data.osm.search.SearchCompiler.UnaryMatch
-
- org.openstreetmap.josm.data.osm.search.SearchCompiler.Not
-
- All Implemented Interfaces:
java.util.function.Predicate<OsmPrimitive>
- Enclosing class:
- SearchCompiler
public static class SearchCompiler.Not extends SearchCompiler.UnaryMatch
Inverts the match.
-
-
Field Summary
-
Fields inherited from class org.openstreetmap.josm.data.osm.search.SearchCompiler.UnaryMatch
match
-
-
Constructor Summary
Constructors Constructor Description Not(SearchCompiler.Match match)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SearchCompiler.MatchgetMatch()booleanmatch(OsmPrimitive osm)Tests whether the primitive matches this criterion.booleanmatch(Tagged osm)Tests whether the tagged object matches this criterion.java.lang.StringtoString()-
Methods inherited from class org.openstreetmap.josm.data.osm.search.SearchCompiler.UnaryMatch
equals, getOperand, hashCode
-
Methods inherited from class org.openstreetmap.josm.data.osm.search.SearchCompiler.Match
test, validate
-
-
-
-
Constructor Detail
-
Not
public Not(SearchCompiler.Match match)
-
-
Method Detail
-
match
public boolean match(OsmPrimitive osm)
Description copied from class:SearchCompiler.MatchTests whether the primitive matches this criterion.- Specified by:
matchin classSearchCompiler.Match- Parameters:
osm- the primitive to test- Returns:
- true if the primitive matches this criterion
-
match
public boolean match(Tagged osm)
Description copied from class:SearchCompiler.MatchTests whether the tagged object matches this criterion.- Overrides:
matchin classSearchCompiler.Match- Parameters:
osm- the tagged object to test- Returns:
- true if the tagged object matches this criterion
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getMatch
public SearchCompiler.Match getMatch()
-
-