public ArrayList<RouteItem> getRouteItems () {
        final ArrayList<RouteItem> items = new ArrayList<>();
        if (segments != null) {
            for (RouteSegment segment : segments) {
                items.add(segment.getItem());
            }
        }
        return items;
    }
@param item item to be added or removed
@return ToggleItemState
main/src/main/java/cgeo/geocaching/models/IndividualRoute.java