openfuture.bugbase.model
Class BugReportTitleComparator

java.lang.Object
  |
  +--openfuture.bugbase.model.BugReportTitleComparator
All Implemented Interfaces:
java.util.Comparator

public class BugReportTitleComparator
extends java.lang.Object
implements java.util.Comparator

Compares two bug reports by their title.

Created: Fri Mar 09 06:40:48 2001

Version:
$Revision: 1.3 $
Author:
Wolfgang Reissenberger

Constructor Summary
BugReportTitleComparator()
           
 
Method Summary
 int compare(java.lang.Object o1, java.lang.Object o2)
          Compare two objects.
 
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

BugReportTitleComparator

public BugReportTitleComparator()
Method Detail

compare

public int compare(java.lang.Object o1,
                   java.lang.Object o2)
Compare two objects. If o1 and o1 are bug reports, their title is compared.
Specified by:
compare in interface java.util.Comparator
Parameters:
o1 - a value of type 'Object'
o2 - a value of type 'Object'
Returns:
-1 if o1 is smaller, 1 if o1 is greater and 0 of o1 is equal to o2.


Copyright © 2000 -- 2003 openfuture.de. All Rights Reserved.