Class SearchCompiler.Preset
- java.lang.Object
-
- org.openstreetmap.josm.data.osm.search.SearchCompiler.Match
-
- org.openstreetmap.josm.data.osm.search.SearchCompiler.Preset
-
- All Implemented Interfaces:
java.util.function.Predicate<OsmPrimitive>
- Enclosing class:
- SearchCompiler
private static class SearchCompiler.Preset extends SearchCompiler.Match
Matches presets.- Since:
- 12464
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<TaggingPreset>presets
-
Constructor Summary
Constructors Constructor Description Preset(java.lang.String presetName)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)inthashCode()booleanmatch(OsmPrimitive osm)Tests whether the primitive matches this criterion.private static booleanpresetNameMatch(java.lang.String name, TaggingPreset preset, boolean matchStrictly)-
Methods inherited from class org.openstreetmap.josm.data.osm.search.SearchCompiler.Match
match, test, validate
-
-
-
-
Field Detail
-
presets
private final java.util.List<TaggingPreset> presets
-
-
Constructor Detail
-
Preset
Preset(java.lang.String presetName) throws SearchParseError
- Throws:
SearchParseError
-
-
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
-
presetNameMatch
private static boolean presetNameMatch(java.lang.String name, TaggingPreset preset, boolean matchStrictly)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-