Class InCollection

  • All Implemented Interfaces:
    Criteria

    public class InCollection
    extends BaseCriteria
    Criteria for inclusion in a given Collection (presumably a Set) of values
    Author:
    teck
    • Constructor Summary

      Constructors 
      Constructor Description
      InCollection​(java.lang.String attributeName, java.util.Collection<?> values)
      Constructor
    • Constructor Detail

      • InCollection

        public InCollection​(java.lang.String attributeName,
                            java.util.Collection<?> values)
        Constructor
        Parameters:
        attributeName - attribute name
        values -
    • Method Detail

      • getAttributeName

        public java.lang.String getAttributeName()
        Return attributeName
        Returns:
        String attribute name
      • values

        public java.util.Collection<?> values()
        Return values.
        Returns:
        Collection<?> values
      • 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