ehcache

net.sf.ehcache.search.expression
Class LessThanOrEqual

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

public class LessThanOrEqual
extends ComparableValue

Less than or equal criteria

Author:
teck

Constructor Summary
LessThanOrEqual(String attributeName, Object value)
          Constructor
 
Method Summary
protected  boolean executeComparable(Comparable attributeValue)
          Execute this criteria for the given Comparable attribute value
protected  boolean executeComparableString(Comparable attributeValue)
          Execute this criteria for the given Comparable strin type attribute value
 Comparable getComparableValue()
          Comparable value.
 
Methods inherited from class net.sf.ehcache.search.expression.ComparableValue
execute, getAttributeName, getType, luceneStringCompare
 
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

LessThanOrEqual

public LessThanOrEqual(String attributeName,
                       Object value)
Constructor

Parameters:
attributeName - attribute name
value -
Method Detail

executeComparable

protected boolean executeComparable(Comparable attributeValue)
Execute this criteria for the given Comparable attribute value

Specified by:
executeComparable in class ComparableValue
Parameters:
attributeValue - Comparable attribute value
Returns:
true if criteria is met

executeComparableString

protected boolean executeComparableString(Comparable attributeValue)
Execute this criteria for the given Comparable strin type attribute value

Specified by:
executeComparableString in class ComparableValue
Parameters:
attributeValue - Comparable attribute value
Returns:
true if criteria is met

getComparableValue

public Comparable getComparableValue()
Comparable value.

Returns:
value

ehcache

Copyright 2001-2014, Terracotta, Inc.