Class SearchCompiler.Nth
java.lang.Object
org.openstreetmap.josm.data.osm.search.SearchCompiler.Match
org.openstreetmap.josm.data.osm.search.SearchCompiler.Nth
- All Implemented Interfaces:
Predicate<OsmPrimitive>
- Enclosing class:
- SearchCompiler
Matches the n-th object of a relation and/or the n-th node of a way.
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateNth(int nth, boolean modulo) (package private)Nth(PushbackTokenizer tokenizer, boolean modulo) -
Method Summary
Methods inherited from class org.openstreetmap.josm.data.osm.search.SearchCompiler.Match
match, test, validate
-
Field Details
-
nthObject
-
modulo
-
-
Constructor Details
-
Nth
Nth(PushbackTokenizer tokenizer, boolean modulo) throws SearchParseError - Throws:
SearchParseError
-
Nth
- Throws:
SearchParseError
-
-
Method Details
-
match
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
-
toString
-
hashCode
-
equals
-