Class SolutionCompare
- java.lang.Object
-
- 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
Constructors Constructor Description SolutionCompare()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(Object o1, Object o2)
-
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, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Method Detail
-
compare
public int compare(Object o1, Object o2)
- Specified by:
compare
in interfaceComparator
-
-