- /**
- * a comparator for sorting features by start position ascending
- */
- private static Comparator<ContiguousI> FORWARD_STRAND = new Comparator<ContiguousI>()
- {
- @Override
- public int compare(ContiguousI o1, ContiguousI o2)
- {
- return Integer.compare(o1.getBegin(), o2.getBegin());
- }
- };
-
- /**
- * a comparator for sorting features by end position descending
- */
- private static Comparator<ContiguousI> REVERSE_STRAND = new Comparator<ContiguousI>()
- {
- @Override
- public int compare(ContiguousI o1, ContiguousI o2)
- {
- return Integer.compare(o2.getEnd(), o1.getEnd());
- }
- };
-