Class AutoFilterManager.Match
- java.lang.Object
-
- org.openstreetmap.josm.data.osm.search.SearchCompiler.Match
-
- org.openstreetmap.josm.gui.autofilter.AutoFilterManager.Match
-
- All Implemented Interfaces:
java.util.function.Predicate<OsmPrimitive>
- Enclosing class:
- AutoFilterManager
static class AutoFilterManager.Match extends SearchCompiler.Match
-
-
Field Summary
Fields Modifier and Type Field Description (package private) AutoFilterRule
rule
(package private) int
value
-
Constructor Summary
Constructors Constructor Description Match(AutoFilterRule rule, int value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
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
-
rule
final AutoFilterRule rule
-
value
final int value
-
-
Constructor Detail
-
Match
Match(AutoFilterRule rule, int value)
-
-
Method Detail
-
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
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-