Class NotCriteria

  • All Implemented Interfaces:
    Cloneable, LanguageObject, Expression

    public class NotCriteria
    extends AtomicCriteria
    A logical criteria that takes the logical NOT of the contained criteria. That is, if the contained criteria returns true, this criteria returns false. For example: "NOT (element = 5)"
    • Constructor Detail

      • NotCriteria

        public NotCriteria()
        Constructs a default instance of this class.
      • NotCriteria

        public NotCriteria​(Criteria crit)
        Constructs an instance of this class with sub-criteria.
        Parameters:
        crit - Contained criteria
    • Method Detail

      • acceptVisitor

        public void acceptVisitor​(LanguageVisitor visitor)
        Description copied from interface: LanguageObject
        Method for accepting a visitor. It is the responsibility of the language object to call back on the visitor.
        Parameters:
        visitor - Visitor being used
      • equals

        public boolean equals​(Object obj)
        Compare equality of two AtomicCriteria.
        Overrides:
        equals in class Object
        Parameters:
        obj - Other object
        Returns:
        True if equivalent
      • hashCode

        public int hashCode()
        Get hash code
        Overrides:
        hashCode in class Object
        Returns:
        Hash code