ehcache

net.sf.ehcache.search.expression
Class LessThan

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.LessThan
All Implemented Interfaces:
Criteria

public class LessThan
extends ComparableValue

Less than criteria

Author:
teck

Constructor Summary
LessThan(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, getAttributes, 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

LessThan

public LessThan(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.