Class ConditionFactory.KeyValueCondition

    • Field Summary

      Fields 
      Modifier and Type Field Description
      boolean considerValAsKey
      If this flag is set, v is treated as a key and the value is the value set for that key.
      java.lang.String k
      The key to search for.
      ConditionFactory.Op op
      The key/value match operation.
      java.lang.String v
      The value to search for.
    • Constructor Summary

      Constructors 
      Constructor Description
      KeyValueCondition​(java.lang.String k, java.lang.String v, ConditionFactory.Op op, boolean considerValAsKey)
      Creates a key/value-condition.
    • 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.
      • considerValAsKey

        public final boolean considerValAsKey
        If this flag is set, v is treated as a key and the value is the value set for that key.
    • Constructor Detail

      • KeyValueCondition

        public KeyValueCondition​(java.lang.String k,
                                 java.lang.String v,
                                 ConditionFactory.Op op,
                                 boolean considerValAsKey)

        Creates a key/value-condition.

        Parameters:
        k - the key
        v - the value
        op - the operation
        considerValAsKey - whether to consider v as another key and compare the values of key k and key v.
    • Method Detail

      • requiresExactKeyMatch

        public boolean requiresExactKeyMatch()
        Determines if this condition requires an exact key match.
        Returns:
        true if this condition requires an exact key match.
        Since:
        14801
      • 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