Class SearchCompiler.ExactType
- java.lang.Object
-
- org.openstreetmap.josm.data.osm.search.SearchCompiler.Match
-
- org.openstreetmap.josm.data.osm.search.SearchCompiler.ExactType
-
- All Implemented Interfaces:
Predicate<OsmPrimitive>
- Enclosing class:
- SearchCompiler
public static class SearchCompiler.ExactType extends SearchCompiler.Match
-
-
Field Summary
Fields Modifier and Type Field Description private OsmPrimitiveType
type
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
OsmPrimitiveType
getType()
int
hashCode()
boolean
match(OsmPrimitive osm)
Tests whether the primitive matches this criterion.String
toString()
-
Methods inherited from class org.openstreetmap.josm.data.osm.search.SearchCompiler.Match
match, test, validate
-
-
-
-
Field Detail
-
type
private final OsmPrimitiveType type
-
-
Constructor Detail
-
ExactType
ExactType(String type) throws SearchParseError
- Throws:
SearchParseError
-
-
Method Detail
-
getType
public OsmPrimitiveType getType()
-
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
-
-