/** * Notifies the listeners that a contact has been added to a roster. * * @param roster the roster that was updated. * @param item the new roster item. */ public static void contactAdded(Roster roster, RosterItem item) { if (!listeners.isEmpty()) { for (RosterEventListener listener : listeners) { listener.contactAdded(roster, item); } } }
/** * Notifies the listeners that a contact has been added to a roster. * * @param roster the roster that was updated. * @param item the new roster item. */ public static void contactAdded(Roster roster, RosterItem item) { if (!listeners.isEmpty()) { for (RosterEventListener listener : listeners) { listener.contactAdded(roster, item); } } }