org.pentaho.platform.engine.services.solution
Class SolutionCompare

java.lang.Object
  extended by org.pentaho.platform.engine.services.solution.SolutionCompare
All Implemented Interfaces:
Comparator

public class SolutionCompare
extends Object
implements Comparator

Class that compares solution paths used for sorting. It takes into account the path depth and sorts the parent directories before than the children.

Author:
dmoran

Constructor Summary
SolutionCompare()
           
 
Method Summary
 int compare(Object o1, Object o2)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

SolutionCompare

public SolutionCompare()
Method Detail

compare

public int compare(Object o1,
                   Object o2)
Specified by:
compare in interface Comparator