/** * The default implementation of this method iterates over the notifyObjects set and calls * {@link #sendNotification(SquidDatabase, Object)} for each of them. Subclasses may override if they want to * handle notifying the entire set differently. * * @param database the SquidDatabase the change occurred in * @param notifyObjects the objects to be used for sending a notification */ protected void sendNotificationsToAll(SquidDatabase database, Set<T> notifyObjects) { for (T notifyObject : notifyObjects) { sendNotification(database, notifyObject); } }
/** * The default implementation of this method iterates over the notifyObjects set and calls * {@link #sendNotification(SquidDatabase, Object)} for each of them. Subclasses may override if they want to * handle notifying the entire set differently. * * @param database the SquidDatabase the change occurred in * @param notifyObjects the objects to be used for sending a notification */ protected void sendNotificationsToAll(SquidDatabase database, Set<T> notifyObjects) { for (T notifyObject : notifyObjects) { sendNotification(database, notifyObject); } }