eTextReader.AnnotationListing
Class EqualityPredicate

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

public class EqualityPredicate
extends java.lang.Object
implements Predicate

Implements a simple equality predicate, where an object matches the predicate based on the results of comparison using the .equals method

Author:
mcfall

Field Summary
private  java.lang.Object expectedValue
           
 
Constructor Summary
EqualityPredicate(java.lang.Object expectedValue)
           
 
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

expectedValue

private java.lang.Object expectedValue
Constructor Detail

EqualityPredicate

public EqualityPredicate(java.lang.Object expectedValue)
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()