Code example for Vector

Methods: addAll

0
     * @param moreNotifications 
     */ 
    public static void queueNotification(List<Notification> moreNotifications) {
        // gets all the subscribers, except the user who initiate the notification action 
        if (moreNotifications != null && !moreNotifications.isEmpty()) {
            notifications.addAll(moreNotifications);
            new NotificationJob().now(); 
        } 
    } 
}