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:
java.util.function.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 booleanall
-
Constructor Summary
Constructors Modifier Constructor Description protectedInArea(boolean all)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)protected abstract java.util.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 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 java.util.Collection<Bounds> getBounds(OsmPrimitive primitive)
-
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
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-