Class SearchCompiler.InArea
java.lang.Object
org.openstreetmap.josm.data.osm.search.SearchCompiler.Match
org.openstreetmap.josm.data.osm.search.SearchCompiler.InArea
- All Implemented Interfaces:
Predicate<OsmPrimitive>
- Direct Known Subclasses:
InView,SearchCompiler.InDataSourceArea
- Enclosing class:
- SearchCompiler
Matches objects within the given bounds.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanprotected abstract Collection<Bounds>getBounds(OsmPrimitive primitive) inthashCode()booleanmatch(OsmPrimitive osm) Tests whether the primitive matches this criterion.Methods inherited from class org.openstreetmap.josm.data.osm.search.SearchCompiler.Match
match, test, validate
-
Field Details
-
all
-
-
Constructor Details
-
InArea
- Parameters:
all- if true, all way nodes or relation members have to be within source area;if false, one suffices.
-
-
Method Details
-
getBounds
-
match
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
-
hashCode
-
equals
-