hudson.plugins.testabilityexplorer.report.costs
Class MethodCostComparator

java.lang.Object
  extended by hudson.plugins.testabilityexplorer.report.costs.MethodCostComparator
All Implemented Interfaces:
java.util.Comparator<MethodCost>

public final class MethodCostComparator
extends java.lang.Object
implements java.util.Comparator<MethodCost>

A Comparator to compare two MethodCost objects by their overall testability.

Author:
reik.schatz

Method Summary
 int compare(MethodCost methodCost, MethodCost methodCost1)
          Compares the given two MethodCost's by their overall.
static MethodCostComparator getInstance()
           
 
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
 

Method Detail

getInstance

public static MethodCostComparator getInstance()

compare

public int compare(MethodCost methodCost,
                   MethodCost methodCost1)
Compares the given two MethodCost's by their overall.

Specified by:
compare in interface java.util.Comparator<MethodCost>
Parameters:
methodCost - first MethodCost
methodCost1 - second MethodCost
Returns:
int


Copyright © 2009. All Rights Reserved.