openfuture.bugbase.model
Class BugReportStatusComparator

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

public class BugReportStatusComparator
extends BugReportDateComparator
implements java.util.Comparator

Compares two bug reports by their rejecting date If these are equal, their fixing date is used for comparison. If these are also equal, starting date is used for comparison. If these are also equal, their reported date. If they are equal, their ID is used.

Created: Mon Apr 03 20:31:26 2000

Version:
$Revision: 1.3 $
Author:
Wolfgang Reissenberger

Constructor Summary
BugReportStatusComparator()
           
 
Method Summary
 int compare(java.lang.Object o1, java.lang.Object o2)
          Compares two bug reports by their reported date.
 
Methods inherited from class openfuture.bugbase.model.BugReportDateComparator
dateCompare
 
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

BugReportStatusComparator

public BugReportStatusComparator()
Method Detail

compare

public int compare(java.lang.Object o1,
                   java.lang.Object o2)
Description copied from class: BugReportDateComparator
Compares two bug reports by their reported date. If they are equal, starting date is used for comparison. If these are also equal, their ID is used.
Specified by:
compare in interface java.util.Comparator
Overrides:
compare in class BugReportDateComparator
Following copied from class: openfuture.bugbase.model.BugReportDateComparator
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.