/** * Filter the preference option based on the notification resource type. Alias call to * {@link isImmediateDeliveryOption(int, Sring)}. * * @param option * The preference option. * @param notification * The notification responding to the event. * @return A boolean value which tells if the User is one of immediate recipients. */ protected boolean isImmediateDeliveryOption(int option, Notification notification) { return isImmediateDeliveryOption(option, notification.getResourceFilter()); }
if (isImmediateDeliveryOption(option, resourceFilter))