com.fxpal.search
Class DocumentMatch.RawScoreComparator

java.lang.Object
  extended by com.fxpal.search.DocumentMatch.RawScoreComparator
All Implemented Interfaces:
java.io.Serializable, java.util.Comparator<DocumentMatch>
Enclosing class:
DocumentMatch

public static class DocumentMatch.RawScoreComparator
extends java.lang.Object
implements java.util.Comparator<DocumentMatch>, java.io.Serializable

Implements Comparator for DocumentMatch instances based on raw scores. Making DocumentMatch implement Comparable creates the need to re-implement equals() and hashCode(), so this DocumentMatch.RawScoreComparator class avoids that complexity.

Author:
Gene Golovchinsky
See Also:
Serialized Form

Constructor Summary
DocumentMatch.RawScoreComparator()
           
 
Method Summary
 int compare(DocumentMatch o1, DocumentMatch o2)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

DocumentMatch.RawScoreComparator

public DocumentMatch.RawScoreComparator()
Method Detail

compare

public int compare(DocumentMatch o1,
                   DocumentMatch o2)
Specified by:
compare in interface java.util.Comparator<DocumentMatch>