src/main/java/de/blau/android/presets/Preset.java
/**
     * Add the values to the autosuggest maps for the key
     * 
     * @param item the relevant PresetItem
     * @param key the key
     * @param values array of the values
     */
Add the values to the autosuggest maps for the key

@param item the relevant PresetItem
@param key the key
@param values array of the values
Add the values to the autosuggest maps for the key @param item the relevant PresetItem @param key the key @param values array of the values
private void addToAutosuggest(@NonNull PresetItem item, @NonNull String key, StringWithDescription[] values) {
        if (item.appliesTo(ElementType.NODE)) {
            autosuggestNodes.add(key, values);
        }
        if (item.appliesTo(ElementType.WAY)) {
            autosuggestWays.add(key, values);
        }
        if (item.appliesTo(ElementType.CLOSEDWAY)) {
            autosuggestClosedways.add(key, values);
        }
        if (item.appliesTo(ElementType.RELATION)) {
            autosuggestRelations.add(key, values);
        }
        if (item.appliesTo(ElementType.AREA)) {
            autosuggestAreas.add(key, values);
        }
    }
private void addToAutosuggest ( @ NonNull PresetItem item , @ NonNull String key , StringWithDescription [ ] values ) { if ( item . appliesTo ( ElementType . NODE ) ) { autosuggestNodes . add ( key , values ) ; } if ( item . appliesTo ( ElementType . WAY ) ) { autosuggestWays . add ( key , values ) ; } if ( item . appliesTo ( ElementType . CLOSEDWAY ) ) { autosuggestClosedways . add ( key , values ) ; } if ( item . appliesTo ( ElementType . RELATION ) ) { autosuggestRelations . add ( key , values ) ; } if ( item . appliesTo ( ElementType . AREA ) ) { autosuggestAreas . add ( key , values ) ; } }
Add the values to the autosuggest maps for the key
Add the values to the autosuggest maps for the key