Class ConditionFactory.SimpleKeyValueCondition

    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.lang.String k
      The key to search for.
      java.lang.String v
      The value to search for.
    • Constructor Summary

      Constructors 
      Constructor Description
      SimpleKeyValueCondition​(java.lang.String k, java.lang.String v)
      Create a new SimpleKeyValueCondition.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean applies​(Tagged osm)
      Checks if the condition applies in the given Tagged element.
      Tag asTag​(Tagged primitive)
      Converts the current condition to a tag
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • k

        public final java.lang.String k
        The key to search for.
      • v

        public final java.lang.String v
        The value to search for.
    • Constructor Detail

      • SimpleKeyValueCondition

        public SimpleKeyValueCondition​(java.lang.String k,
                                       java.lang.String v)
        Create a new SimpleKeyValueCondition.
        Parameters:
        k - The key
        v - The value.
    • Method Detail

      • asTag

        public Tag asTag​(Tagged primitive)
        Description copied from interface: Condition.TagCondition
        Converts the current condition to a tag
        Specified by:
        asTag in interface Condition.TagCondition
        Parameters:
        primitive - A tagged object to use as context. May be ignored.
        Returns:
        A tag with the key/value of this condition.
      • toString

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