src/main/java/de/blau/android/osm/StorageDelegator.java
/**
     * Called after an element has been changed
     * 
     * As it may be fairly expensive to determine all changes pre and/or post may be null Don't call this if just the
     * node positions have changed
     * 
     * @param pre changed element before the operation or null
     * @param post changed element after the operation or null
     */
Called after an element has been changed

As it may be fairly expensive to determine all changes pre and/or post may be null Don't call this if just the
node positions have changed

@param pre changed element before the operation or null
@param post changed element after the operation or null
Called after an element has been changed As it may be fairly expensive to determine all changes pre and / or post may be null Don ' t call this if just the node positions have changed @param pre changed element before the operation or null @param post changed element after the operation or null
void onElementChanged(@Nullable OsmElement pre, @Nullable OsmElement post) {
        List<OsmElement> preList = null;
        List<OsmElement> postList = null;
        if (pre != null) {
            preList = new ArrayList<>();
            preList.add(pre);
        }
        if (post != null) {
            postList = new ArrayList<>();
            postList.add(post);
        }
        onElementChanged(preList, postList);
    }
void onElementChanged ( @ Nullable OsmElement pre , @ Nullable OsmElement post ) { List < OsmElement > preList = null ; List < OsmElement > postList = null ; if ( pre != null ) { preList = new ArrayList < > ( ) ; preList . add ( pre ) ; } if ( post != null ) { postList = new ArrayList < > ( ) ; postList . add ( post ) ; } onElementChanged ( preList , postList ) ; }
Called after an element has been changed
Called after an element has been changed