src/main/java/de/blau/android/osm/StorageDelegator.java
/**
     * Retrieve a relation member OsmElement from the appropriate index
     * 
     * @param r the Relation
     * @param type type of OsmElement
     * @param ref the OSM id of the element
     * @param nodeIndex node index
     * @param wayIndex way index
     * @param relationIndex relation index
     * @return the element or null
     */
Retrieve a relation member OsmElement from the appropriate index


Retrieve a relation member OsmElement from the appropriate index
public OsmElement elementFromIndex(@NonNull Relation r, @NonNull final String type, final long ref, @NonNull LongOsmElementMap<Node> nodeIndex,
            @NonNull LongOsmElementMap<Way> wayIndex, @NonNull LongOsmElementMap<Relation> relationIndex) {
        OsmElement e = null;
        switch (type) {
        case Node.NAME:
            e = nodeIndex.get(ref);
            break;
        case Way.NAME:
            e = wayIndex.get(ref);
            break;
        case Relation.NAME:
            e = relationIndex.get(ref);
            break;
        default:
            logUnknownMemberType(r, type);
        }
        return e;
    }
public OsmElement elementFromIndex ( @ NonNull Relation r , @ NonNull final String type , final long ref , @ NonNull LongOsmElementMap < Node > nodeIndex , @ NonNull LongOsmElementMap < Way > wayIndex , @ NonNull LongOsmElementMap < Relation > relationIndex ) { OsmElement e = null ; switch ( type ) { case Node . NAME : e = nodeIndex . get ( ref ) ; break ; case Way . NAME : e = wayIndex . get ( ref ) ; break ; case Relation . NAME : e = relationIndex . get ( ref ) ; break ; default : logUnknownMemberType ( r , type ) ; } return e ; }
Retrieve a relation member OsmElement from the appropriate index
Retrieve a relation member OsmElement from the appropriate index