ehcache

net.sf.ehcache.search.expression
Class NotEqualTo

java.lang.Object
  extended by net.sf.ehcache.search.expression.BaseCriteria
      extended by net.sf.ehcache.search.expression.EqualTo
          extended by net.sf.ehcache.search.expression.NotEqualTo
All Implemented Interfaces:
Criteria

public class NotEqualTo
extends EqualTo

Criteria for plain "not equals to" condition

Author:
teck

Constructor Summary
NotEqualTo(String attributeName, Object value)
          Constructor
 
Method Summary
 boolean execute(Element e, Map<String,AttributeExtractor> attributeExtractors)
          Test this criteria against a cache element
 
Methods inherited from class net.sf.ehcache.search.expression.EqualTo
getAttributeName, getAttributes, getType, getValue
 
Methods inherited from class net.sf.ehcache.search.expression.BaseCriteria
and, getExtractor, not, or
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NotEqualTo

public NotEqualTo(String attributeName,
                  Object value)
Constructor

Parameters:
attributeName - attribute name
value -
Method Detail

execute

public boolean execute(Element e,
                       Map<String,AttributeExtractor> attributeExtractors)
Test this criteria against a cache element

Specified by:
execute in interface Criteria
Overrides:
execute in class EqualTo
Parameters:
e - cache element
attributeExtractors - map of attribute extractors to attribute value names
Returns:
true if the criteria matches this element

ehcache

Copyright 2001-2016, Terracotta, Inc.