src/main/java/de/blau/android/presets/PresetItem.java
/**
     * Add a LinkedList of PresetRoles to the item
     * 
     * @param newRoles the PresetRoles to add
     */
Add a LinkedList of PresetRoles to the item

@param newRoles the PresetRoles to add
Add a LinkedList of PresetRoles to the item @param newRoles the PresetRoles to add
public void addAllRoles(@Nullable List<PresetRole> newRoles) {
        if (roles == null) {
            roles = new LinkedList<>();
        }
        if (newRoles != null) {
            for (PresetRole role : newRoles) {
                if (!roles.contains(role)) {
                    roles.add(role);
                }
            }
        }
    }
public void addAllRoles ( @ Nullable List < PresetRole > newRoles ) { if ( roles == null ) { roles = new LinkedList < > ( ) ; } if ( newRoles != null ) { for ( PresetRole role : newRoles ) { if ( ! roles . contains ( role ) ) { roles . add ( role ) ; } } } }
Add a LinkedList of PresetRoles to the item
Add a LinkedList of PresetRoles to the item