src/main/java/de/blau/android/osm/StorageDelegator.java
/**
     * Recursively add parent relations to keep
     * 
     * @param keepRelations the Set of relations to keep
     * @param e the OsmElement the parents of we want to keep
     */
Recursively add parent relations to keep

@param keepRelations the Set of relations to keep
@param e the OsmElement the parents of we want to keep
Recursively add parent relations to keep @param keepRelations the Set of relations to keep @param e the OsmElement the parents of we want to keep
void keepParents(@NonNull LongHashSet keepRelations, @NonNull OsmElement e) {
        List<Relation> parents = e.getParentRelations();
        if (parents != null) {
            for (Relation r : parents) {
                long relationId = r.getOsmId();
                if (!keepRelations.contains(relationId)) {
                    keepRelations.put(relationId);
                    keepParents(keepRelations, r);
                }
            }
        }
    }
void keepParents ( @ NonNull LongHashSet keepRelations , @ NonNull OsmElement e ) { List < Relation > parents = e . getParentRelations ( ) ; if ( parents != null ) { for ( Relation r : parents ) { long relationId = r . getOsmId ( ) ; if ( ! keepRelations . contains ( relationId ) ) { keepRelations . put ( relationId ) ; keepParents ( keepRelations , r ) ; } } } }
Recursively add parent relations to keep
Recursively add parent relations to keep