class AccordionList implements Iterable<RangedValue<T>> {

    public void remove(int entryIndex) {
        int offset = -mRangeList.get(entryIndex).mRange.getSize();
        mRangeList.remove(entryIndex);
        // Update following sections.
        for (int i = entryIndex; i < mRangeList.size(); i++) {
            mRangeList.set(i, mRangeList.get(i).offset(offset));
        }
    }

}