Class EqualTo

  • All Implemented Interfaces:
    Criteria
    Direct Known Subclasses:
    NotEqualTo

    public class EqualTo
    extends BaseCriteria
    A comparison operator meaning Java "equals to" condition
    Author:
    teck
    • Constructor Summary

      Constructors 
      Constructor Description
      EqualTo​(java.lang.String attributeName, java.lang.Object value)
      Constructor
    • Constructor Detail

      • EqualTo

        public EqualTo​(java.lang.String attributeName,
                       java.lang.Object value)
        Constructor
        Parameters:
        attributeName - attribute name
        value -
    • Method Detail

      • getValue

        public java.lang.Object getValue()
        Get attribute value.
        Returns:
        attribute value
      • getAttributeName

        public java.lang.String getAttributeName()
        Get attribute name.
        Returns:
        attribute name.
      • getType

        public AttributeType getType()
        Get attribute type.
        Returns:
        attribute type.
      • 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