Class SearchCompiler.BooleanMatch

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private boolean defaultValue  
      private java.lang.String key  
    • Constructor Summary

      Constructors 
      Constructor Description
      BooleanMatch​(java.lang.String key, boolean defaultValue)  
    • Field Detail

      • key

        private final java.lang.String key
    • Constructor Detail

      • BooleanMatch

        BooleanMatch​(java.lang.String key,
                     boolean defaultValue)
    • Method Detail

      • getKey

        public java.lang.String getKey()
      • 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
      • 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