+ int compare = (int) (_time - inOther._time);
+ if (compare == 0) {compare = _index - inOther._index;}
+ return compare;
+ }
+
+ /**
+ * Override equals method to match compareTo
+ */
+ public boolean equals(Object inOther)
+ {
+ if (inOther instanceof TimeIndexPair) {
+ TimeIndexPair otherPair = (TimeIndexPair) inOther;
+ return _time == otherPair._time;
+ }
+ return false;