Class Not

  • All Implemented Interfaces:
    Criteria

    public class Not
    extends BaseCriteria
    A search criteria composed of the logical "not" (ie. negation) of another criteria
    Author:
    teck
    • Constructor Detail

      • Not

        public Not​(Criteria c)
        Construct a "not" criteria of the given criteria
        Parameters:
        c - the criteria to "not"
    • Method Detail

      • getCriteria

        public Criteria getCriteria()
        Returns:
        criteria
      • execute

        public boolean execute​(Element e,
                               java.util.Map<java.lang.String,​AttributeExtractor> attributeExtractors)
        Test this criteria against a cache element
        Parameters:
        e - cache element
        attributeExtractors - map of attribute extractors to attribute value names
        Returns:
        true if the criteria matches this element
      • getAttributes

        public java.util.Set<Attribute<?>> getAttributes()
        Returns all search attributes referenced by this instance
        Specified by:
        getAttributes in class BaseCriteria