Class SearchCompiler.RangeMatch
- java.lang.Object
-
- org.openstreetmap.josm.data.osm.search.SearchCompiler.Match
-
- org.openstreetmap.josm.data.osm.search.SearchCompiler.RangeMatch
-
- All Implemented Interfaces:
java.util.function.Predicate<OsmPrimitive>
- Direct Known Subclasses:
SearchCompiler.AreaSize,SearchCompiler.ChangesetId,SearchCompiler.Id,SearchCompiler.MemberCountRange,SearchCompiler.NodeCountRange,SearchCompiler.TagCountRange,SearchCompiler.TimestampRange,SearchCompiler.Version,SearchCompiler.WayCountRange,SearchCompiler.WayLength
- Enclosing class:
- SearchCompiler
private abstract static class SearchCompiler.RangeMatch extends SearchCompiler.Match
Matches objects with properties in a certain range.
-
-
Constructor Summary
Constructors Constructor Description RangeMatch(long min, long max)RangeMatch(PushbackTokenizer.Range range)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)protected abstract java.lang.LonggetNumber(OsmPrimitive osm)protected abstract java.lang.StringgetString()inthashCode()booleanmatch(OsmPrimitive osm)Tests whether the primitive matches this criterion.java.lang.StringtoString()-
Methods inherited from class org.openstreetmap.josm.data.osm.search.SearchCompiler.Match
match, test, validate
-
-
-
-
Constructor Detail
-
RangeMatch
RangeMatch(long min, long max)
-
RangeMatch
RangeMatch(PushbackTokenizer.Range range)
-
-
Method Detail
-
getNumber
protected abstract java.lang.Long getNumber(OsmPrimitive osm)
-
getString
protected abstract java.lang.String getString()
-
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
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-