src/main/java/de/blau/android/presets/PresetElement.java
/**
     * Get a list of ElementTypes this PresetItem applies to
     * 
     * @return a List of ElementType
     */
Get a list of ElementTypes this PresetItem applies to

@return a List of ElementType
Get a list of ElementTypes this PresetItem applies to @return a List of ElementType
@NonNull
    public List<ElementType> appliesTo() {
        List<ElementType> result = new ArrayList<>();
        if (appliesToNode) {
            result.add(ElementType.NODE);
        }
        if (appliesToWay) {
            result.add(ElementType.WAY);
        }
        if (appliesToClosedway) {
            result.add(ElementType.CLOSEDWAY);
        }
        if (appliesToRelation) {
            result.add(ElementType.RELATION);
        }
        if (appliesToArea) {
            result.add(ElementType.AREA);
        }
        return result;
    }
@ NonNull public List < ElementType > appliesTo ( ) { List < ElementType > result = new ArrayList < > ( ) ; if ( appliesToNode ) { result . add ( ElementType . NODE ) ; } if ( appliesToWay ) { result . add ( ElementType . WAY ) ; } if ( appliesToClosedway ) { result . add ( ElementType . CLOSEDWAY ) ; } if ( appliesToRelation ) { result . add ( ElementType . RELATION ) ; } if ( appliesToArea ) { result . add ( ElementType . AREA ) ; } return result ; }
Get a list of ElementTypes this PresetItem applies to
Get a list of ElementTypes this PresetItem applies to