public static class SearchCompiler.ValueComparison extends SearchCompiler.TaggedMatch
Modifier and Type | Field and Description |
---|---|
private int |
compareMode |
private static Pattern |
ISO8601 |
private String |
key |
private Double |
referenceNumber |
private String |
referenceValue |
Constructor and Description |
---|
ValueComparison(String key,
String referenceValue,
int compareMode) |
Modifier and Type | Method and Description |
---|---|
boolean |
match(Tagged osm)
Tests whether the tagged object matches this criterion.
|
String |
toString() |
match
evaluate, existsMatch, forallMatch
private final String referenceValue
private final Double referenceNumber
private final int compareMode
public ValueComparison(String key, String referenceValue, int compareMode)
public boolean match(Tagged osm)
SearchCompiler.Match
match
in class SearchCompiler.TaggedMatch
osm
- the tagged object to test