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
public abstract static class SearchCompiler.InArea extends SearchCompiler.Match
Matches objects within the given bounds.
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
all
-
Constructor Summary
Constructors Modifier Constructor Description protected
InArea(boolean all)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
protected abstract Collection<Bounds>
getBounds(OsmPrimitive primitive)
int
hashCode()
boolean
match(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 Detail
-
all
protected final boolean all
-
-
Constructor Detail
-
InArea
protected InArea(boolean all)
- Parameters:
all
- if true, all way nodes or relation members have to be within source area;if false, one suffices.
-
-
Method Detail
-
getBounds
protected abstract Collection<Bounds> getBounds(OsmPrimitive primitive)
-
match
public boolean match(OsmPrimitive osm)
Description copied from class:SearchCompiler.Match
Tests whether the primitive matches this criterion.- Specified by:
match
in classSearchCompiler.Match
- Parameters:
osm
- the primitive to test- Returns:
- true if the primitive matches this criterion
-
-