openfuture.bugbase.model
Class BugReportLevelComparator

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

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

Compares bug reports by their error level.

Created: Thu Jun 15 19:02:18 2000

Version:
$Revision: 1.3 $
Author:
Wolfgang Reissenberger

Constructor Summary
BugReportLevelComparator()
           
 
Method Summary
 int compare(java.lang.Object o1, java.lang.Object o2)
          Compares bug reports by their error level.
 
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

BugReportLevelComparator

public BugReportLevelComparator()
Method Detail

compare

public int compare(java.lang.Object o1,
                   java.lang.Object o2)
Compares bug reports by their error level.
Specified by:
compare in interface java.util.Comparator
Parameters:
o1 - Object of type BugReport.
o2 - Object of type BugReport.
Returns:
> 0 if the error level of o1 is less severe than that of o2, 0 if they have equal error level, <> 0 otherwise.


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