Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

jgift.search
Class FileNameComparator  view FileNameComparator download FileNameComparator.java

java.lang.Object
  extended byjgift.search.SearchResultComparator
      extended byjgift.search.FileNameComparator
All Implemented Interfaces:
java.util.Comparator

public class FileNameComparator
extends SearchResultComparator

Compares search results based on their file name.

Version:
$Revision: 1.1 $

Field Summary
 
Fields inherited from class jgift.search.SearchResultComparator
 
Constructor Summary
FileNameComparator()
           
 
Method Summary
protected  int compareResults(SearchResult r1, SearchResult r2)
          Compare two search results for order.
 
Methods inherited from class jgift.search.SearchResultComparator
compare, isAscending, setAscending
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

FileNameComparator

public FileNameComparator()
Method Detail

compareResults

protected int compareResults(SearchResult r1,
                             SearchResult r2)
Compare two search results for order.

Specified by:
compareResults in class SearchResultComparator