public int groupFor(final int index) {
        if (index < 0 || index >= size()) {
            return -1;
        }
        return groupForInternal(index);
    }
Returns group for given index, or -1 if index doesn't exist in this list
main/src/main/java/cgeo/geocaching/utils/GroupedList.java