private boolean notifyOnRestoreDefaultValueRequested(@NonNull final Preference preference,
                                                         final Object currentValue) {
        boolean result = true;

        for (RestoreDefaultsListener listener : restoreDefaultsListeners) {
            result &= listener.onRestoreDefaultValueRequested(this, preference, currentValue);
        }

        return result;
    }
private boolean notifyOnRestoreDefaultValueRequested ( @ NonNull final Preference preference , final Object currentValue ) { boolean result = true ; for ( RestoreDefaultsListener listener : restoreDefaultsListeners ) { result &= listener . onRestoreDefaultValueRequested ( this , preference , currentValue ) ; } return result ; }
Notifies all registered listeners, that the default value of a specific preference should be
restored.

@param preference
The preference, whose default value should be restored, as an instance of the class
{@link Preference}. The preference may not be null
@param currentValue
The current value of the preference, whose default value should be restored, as an
instance of the class {@link Object}
@return True, if restoring the preference's default value should be proceeded, false
otherwise