openfuture.bugbase.model
Class BugReportPackageComparator

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

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


Constructor Summary
BugReportPackageComparator()
           
 
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

BugReportPackageComparator

public BugReportPackageComparator()
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 package name 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.