public class PointToPointFlowComparator extends Object implements Comparator<PointToPointFlow<Module>>
PointToPointFlowComparator is an implementation of
Comparator for PointToPointFlow that compares
two such objects based on their Module children.
Needs to be able to accurately sort:
FromModule ToModule ------------------- 1 2 NULL 1 3 NULL 2 3 I'd want it to end up like this: FromModule ToModule -------------------- NULL 1 1 2 2 3 3 NULL
| Constructor and Description |
|---|
PointToPointFlowComparator() |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(PointToPointFlow<Module> ptpf1,
PointToPointFlow<Module> ptpf2)
Compare two instances of PointToPointFlow
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequalspublic int compare(PointToPointFlow<Module> ptpf1, PointToPointFlow<Module> ptpf2)
compare in interface Comparator<PointToPointFlow<Module>>ptpf1 - - The first PointToPointFlow to compareptpf2 - - The second PointToPointFlow to compareCopyright © 2007-2015 Ikasan. All Rights Reserved.