public final void removeAllValues ( @ NonNull final Collection < String > values ) { Condition . INSTANCE . ensureNotNull ( values , "The values may not be null" ) ; if ( this . values != null ) { if ( this . values . removeAll ( values ) ) { if ( persistSet ( this . values ) ) { notifyChanged ( ) ; } } } }
Removes all values which are contained by a specific collection from the preference . By removing values the changes will be persisted .