{ if (isSelectionEmpty()) return -1;  boolean first = true; int min = -1; for (int i=0;i<sel.size();i++) { Range r = (Range) sel.get(i);  if (first) { min = r.i0; first = false; } else { if (r.i0 > min) { min = r.i0; } } } return min; }
{ if (isSelectionEmpty()) return -1;  return sel.nextSetBit(0); }
    public int getMinSelectionIndex()    {	if (isSelectionEmpty())	    return -1;		boolean first = true;	int min = -1;	for (int i=0;i<sel.size();i++)	    {		Range r = (Range) sel.get(i);		if (first)		    {			min = r.i0;			first = false;		    }			else		    {			if (r.i0 > min)			    {				min = r.i0;			    }		    }	    }	return min;    }