public static class SearchCompiler.ValueComparison extends SearchCompiler.TaggedMatch
Modifier and Type | Field and Description |
---|---|
private int |
compareMode |
private static java.util.regex.Pattern |
ISO8601 |
private java.lang.String |
key |
private java.lang.Double |
referenceNumber |
private java.lang.String |
referenceValue |
Constructor and Description |
---|
ValueComparison(java.lang.String key,
java.lang.String referenceValue,
int compareMode) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
boolean |
match(Tagged osm)
Tests whether the tagged object matches this criterion.
|
java.lang.String |
toString() |
compilePattern, match
test
private final java.lang.String key
private final java.lang.String referenceValue
private final java.lang.Double referenceNumber
private final int compareMode
private static final java.util.regex.Pattern ISO8601
public ValueComparison(java.lang.String key, java.lang.String referenceValue, int compareMode)
public boolean match(Tagged osm)
SearchCompiler.Match
match
in class SearchCompiler.TaggedMatch
osm
- the tagged object to testpublic java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object