src/main/java/de/blau/android/presets/PresetElement.java
/**
     * Test what kind of elements this PresetElement applies to
     * 
     * @param type the ElementType to check for
     * @return true if applicable
     */
Test what kind of elements this PresetElement applies to

@param type the ElementType to check for
@return true if applicable
Test what kind of elements this PresetElement applies to @param type the ElementType to check for @return true if applicable
public boolean appliesTo(@NonNull ElementType type) {
        switch (type) {
        case NODE:
            return appliesToNode;
        case WAY:
            return appliesToWay;
        case CLOSEDWAY:
            return appliesToClosedway;
        case RELATION:
            return appliesToRelation;
        case AREA:
            return appliesToArea;
        }
        return true; 
    }
public boolean appliesTo ( @ NonNull ElementType type ) { switch ( type ) { case NODE : return appliesToNode ; case WAY : return appliesToWay ; case CLOSEDWAY : return appliesToClosedway ; case RELATION : return appliesToRelation ; case AREA : return appliesToArea ; } return true ; }
Test what kind of elements this PresetElement applies to
Test what kind of elements this PresetElement applies to
// should never happen