Class SearchCompiler.ExactKeyValue

    • Constructor Detail

      • ExactKeyValue

        public ExactKeyValue​(boolean regexp,
                             boolean caseSensitive,
                             java.lang.String key,
                             java.lang.String value)
                      throws SearchParseError
        Constructs a new ExactKeyValue.
        Parameters:
        regexp - regular expression
        caseSensitive - true to perform a case-sensitive search
        key - key
        value - value
        Throws:
        SearchParseError - if a parse error occurs
    • Method Detail

      • match

        public boolean match​(Tagged osm)
        Description copied from class: SearchCompiler.Match
        Tests whether the tagged object matches this criterion.
        Specified by:
        match in class SearchCompiler.TaggedMatch
        Parameters:
        osm - the tagged object to test
        Returns:
        true if the tagged object matches this criterion
      • getKey

        public java.lang.String getKey()
      • getValue

        public java.lang.String getValue()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object