Class KeyValueEqualsCondition

  • All Implemented Interfaces:
    Condition, java.util.function.Predicate<StateObj>
    Direct Known Subclasses:
    MatchesCondition

    public class KeyValueEqualsCondition
    extends java.lang.Object
    implements Condition
    Evaluates true if the state has the key and exact value
    • Constructor Summary

      Constructors 
      Constructor Description
      KeyValueEqualsCondition​(java.lang.String key, java.lang.String value)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getKey()  
      java.lang.String getValue()  
      boolean test​(StateObj input)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface com.dtolabs.rundeck.core.rules.Condition

        negate
      • Methods inherited from interface java.util.function.Predicate

        and, or
    • Constructor Detail

      • KeyValueEqualsCondition

        public KeyValueEqualsCondition​(java.lang.String key,
                                       java.lang.String value)
    • Method Detail

      • test

        public boolean test​(StateObj input)
        Specified by:
        test in interface java.util.function.Predicate<StateObj>
      • toString

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

        public java.lang.String getKey()
      • getValue

        public java.lang.String getValue()