eTextReader.AnnotationListing
Class LessThanPredicate

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

public class LessThanPredicate
extends java.lang.Object
implements Predicate

Implements a simple less than comparison. The compareTo method for the bound must evaluate correctly when given the object passed as a parameter to the evaluate method.

Author:
mcfall

Field Summary
private  java.lang.Comparable bound
           
 
Constructor Summary
LessThanPredicate(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

LessThanPredicate

public LessThanPredicate(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()