pulse - the web application framework Get pulse at SourceForge.net. Fast, secure and Free Open Source software downloads Ohloh project report for pulse-java

org.torweg.pulse.component.statistics.view
Class GroupAnalysisViewControllerResultData.PathTreeAggregationsNodeComparator

java.lang.Object
  extended by org.torweg.pulse.component.statistics.view.GroupAnalysisViewControllerResultData.PathTreeAggregationsNodeComparator
All Implemented Interfaces:
java.io.Serializable, java.util.Comparator<GroupAnalysisViewControllerResultData.PathTreeAggregationsNode>
Enclosing class:
GroupAnalysisViewControllerResultData

protected static final class GroupAnalysisViewControllerResultData.PathTreeAggregationsNodeComparator
extends java.lang.Object
implements java.util.Comparator<GroupAnalysisViewControllerResultData.PathTreeAggregationsNode>, java.io.Serializable

Compares PathTreeAgregationsNodes by their "hit-count + child-hit-count", and if the numbers are equal by name.

Version:
$Revision: 1568 $
Author:
Daniel Dietz
See Also:
Serialized Form

Constructor Summary
protected GroupAnalysisViewControllerResultData.PathTreeAggregationsNodeComparator()
           
 
Method Summary
 int compare(GroupAnalysisViewControllerResultData.PathTreeAggregationsNode o1, GroupAnalysisViewControllerResultData.PathTreeAggregationsNode o2)
          Compares the given PathTreeAgregationsNodes by their "hit-count + child-hit-count", and if the numbers are equal by name.
 
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

GroupAnalysisViewControllerResultData.PathTreeAggregationsNodeComparator

protected GroupAnalysisViewControllerResultData.PathTreeAggregationsNodeComparator()
Method Detail

compare

public int compare(GroupAnalysisViewControllerResultData.PathTreeAggregationsNode o1, GroupAnalysisViewControllerResultData.PathTreeAggregationsNode o2)
Compares the given PathTreeAgregationsNodes by their "hit-count + child-hit-count", and if the numbers are equal by name.

Specified by:
compare in interface java.util.Comparator<GroupAnalysisViewControllerResultData.PathTreeAggregationsNode>
Parameters:
o1 - a PathTreeAggregationsNode
o2 - a PathTreeAggregationsNode
Returns:
-1/0/1
See Also:
Comparator.compare(java.lang.Object, java.lang.Object)