ehcache

net.sf.ehcache.search.expression
Class GreaterThan

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

public class GreaterThan
extends ComparableValue

Greater than criteria

Author:
teck

Constructor Summary
GreaterThan(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

GreaterThan

public GreaterThan(String attributeName,
                   Object value)
Constructor

Parameters:
attributeName - attribute name
value -
Method Detail

getComparableValue

public Comparable getComparableValue()
Comparable value.

Returns:
value

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

ehcache

Copyright 2001-2017, Terracotta, Inc.