eTextReader.AnnotationListing
Class GreaterThanPredicate

java.lang.Object
  extended by eTextReader.AnnotationListing.GreaterThanPredicate
All Implemented Interfaces:
org.apache.commons.collections.Predicate

public class GreaterThanPredicate
extends java.lang.Object
implements Predicate

An implementation of the Predicate interface that evaluates to true whenever the item being compared is greater than a certain bound. The bound must implement the Comparable interface.

Author:
mcfall

Field Summary
private  java.lang.Comparable bound
           
 
Constructor Summary
GreaterThanPredicate(java.lang.Comparable bound)
           
 
Method Summary
 boolean evaluate(java.lang.Object arg0)
           
 java.lang.String getDescription()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bound

private java.lang.Comparable bound
Constructor Detail

GreaterThanPredicate

public GreaterThanPredicate(java.lang.Comparable bound)
Method Detail

evaluate

public boolean evaluate(java.lang.Object arg0)
Specified by:
evaluate in interface org.apache.commons.collections.Predicate

getDescription

public java.lang.String getDescription()