src/main/java/de/blau/android/util/Util.java
/**
     * Return the next Way index in a list of RelationMemberDescriptions
     * 
     * @param start starting index
     * @param unconnected List of T
     * @param <T> Class that extents RelationMember
     * @return the index of the next Way, or that value of start
     */
Return the next Way index in a list of RelationMemberDescriptions

@param start starting index
@param unconnected List of T
@param  Class that extents RelationMember
@return the index of the next Way, or that value of start
Return the next Way index in a list of RelationMemberDescriptions @param start starting index @param unconnected List of T @param Class that extents RelationMember @return the index of the next Way or that value of start
private static <T extends RelationMember> int nextWay(int start, @NonNull List<T> unconnected) {
        int firstWay = start;
        for (; firstWay < unconnected.size(); firstWay++) {
            T rm = unconnected.get(firstWay);
            if (rm.downloaded() && Way.NAME.equals(rm.getType())) {
                break;
            }
        }
        return firstWay;
    }
private static < T extends RelationMember > int nextWay ( int start , @ NonNull List < T > unconnected ) { int firstWay = start ; for ( ; firstWay < unconnected . size ( ) ; firstWay ++ ) { T rm = unconnected . get ( firstWay ) ; if ( rm . downloaded ( ) && Way . NAME . equals ( rm . getType ( ) ) ) { break ; } } return firstWay ; }
Return the next Way index in a list of RelationMemberDescriptions
Return the next Way index in a list of RelationMemberDescriptions
// find first way