src/main/java/de/blau/android/validation/BaseValidator.java
/**
     * Check if a way has a connection to one of a List of ways
     * 
     * @param way the way
     * @param candidateWays the list of candidates
     * @return true if we have a common node with one of the ways
     */
Check if a way has a connection to one of a List of ways

@param way the way
@param candidateWays the list of candidates
@return true if we have a common node with one of the ways
Check if a way has a connection to one of a List of ways @param way the way @param candidateWays the list of candidates @return true if we have a common node with one of the ways
private boolean hasConnection(@NonNull Way way, @NonNull List<Way> candidateWays) {
        BoundingBox bb = way.getBounds();
        for (Way c : candidateWays) {
            if (bb.intersects(c.getBounds()) && way.hasCommonNode(c)) {
                return true;
            }
        }
        return false;
    }
private boolean hasConnection ( @ NonNull Way way , @ NonNull List < Way > candidateWays ) { BoundingBox bb = way . getBounds ( ) ; for ( Way c : candidateWays ) { if ( bb . intersects ( c . getBounds ( ) ) && way . hasCommonNode ( c ) ) { return true ; } } return false ; }
Check if a way has a connection to one of a List of ways
Check if a way has a connection to one of a List of ways