Class SearchCompiler.KeyValue

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private boolean caseSensitive  
      private java.lang.String key  
      private java.util.regex.Pattern keyPattern  
      private java.lang.String value  
      private java.util.regex.Pattern valuePattern  
    • Constructor Summary

      Constructors 
      Constructor Description
      KeyValue​(java.lang.String key, java.lang.String value, boolean regexSearch, boolean caseSensitive)  
    • Field Detail

      • key

        private final java.lang.String key
      • keyPattern

        private final java.util.regex.Pattern keyPattern
      • value

        private final java.lang.String value
      • valuePattern

        private final java.util.regex.Pattern valuePattern
    • 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
      • getMv

        private java.lang.String getMv​(Tagged osm)
      • 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