Class NotCondition

  • All Implemented Interfaces:
    ICondition

    public class NotCondition
    extends java.lang.Object
    implements ICondition
    Condition for negating another condition.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected ICondition cond
      The negated condition.
    • Constructor Summary

      Constructors 
      Constructor Description
      NotCondition​(ICondition cond)
      Create a new not condition.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ICondition getCondition()
      Get the condition.
      java.util.List getVariables()
      Get all variables.
      java.lang.String toString()
      Get the string representation.
      • Methods inherited from class java.lang.Object

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

      • cond

        protected ICondition cond
        The negated condition.
    • Constructor Detail

      • NotCondition

        public NotCondition​(ICondition cond)
        Create a new not condition.
    • Method Detail

      • getCondition

        public ICondition getCondition()
        Get the condition.
        Returns:
        The condition.
      • getVariables

        public java.util.List getVariables()
        Get all variables.
        Specified by:
        getVariables in interface ICondition
        Returns:
        The declared variables.
      • toString

        public java.lang.String toString()
        Get the string representation.
        Overrides:
        toString in class java.lang.Object
        Returns:
        The string representation.