/**
* Compare intervals by start position ascending and end position descending.
+ *
+ * BIGENDIAN sorts 10-100 ahead of 10-80 (original IntervalStoreJ method
+ *
*/
static Comparator<? super IntervalI> COMPARATOR_BIGENDIAN = new Comparator<IntervalI>()
{
};
/**
- * Compare intervals by start position ascending and end position ascending.
+ * Compare intervals by start position ascending and end position descending.
+ *
+ * LITTLEENDIAN sorts 10-100 after 10-80
+ *
*/
static Comparator<? super IntervalI> COMPARATOR_LITTLEENDIAN = new Comparator<IntervalI>()
{
* that point we know that we have the correct type.
*
* @param i
- * @return true if equal
+ * may be null
+ * @return true if equal; null value must return false, not throw
+ * NullPointerException
*/
abstract boolean equalsInterval(IntervalI i);