1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-27 00:32:07 +01:00

RosterListener now uses generics.

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@7069 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Matt Tucker 2007-02-09 06:21:29 +00:00 committed by matt
parent 877afcd3ba
commit 274ef0cd51
2 changed files with 5 additions and 5 deletions

View file

@ -519,8 +519,8 @@ public class Roster implements ConnectionListener {
* @param updatedEntries the collection of address of the updated contacts.
* @param deletedEntries the collection of address of the deleted contacts.
*/
private void fireRosterChangedEvent(Collection addedEntries, Collection updatedEntries,
Collection deletedEntries)
private void fireRosterChangedEvent(Collection<String> addedEntries, Collection<String> updatedEntries,
Collection<String> deletedEntries)
{
for (RosterListener listener : rosterListeners) {
if (!addedEntries.isEmpty()) {

View file

@ -36,21 +36,21 @@ public interface RosterListener {
*
* @param addresses the XMPP addresses of the contacts that have been added to the roster.
*/
public void entriesAdded(Collection addresses);
public void entriesAdded(Collection<String> addresses);
/**
* Called when a roster entries are updated.
*
* @param addresses the XMPP addresses of the contacts whose entries have been updated.
*/
public void entriesUpdated(Collection addresses);
public void entriesUpdated(Collection<String> addresses);
/**
* Called when a roster entries are removed.
*
* @param addresses the XMPP addresses of the contacts that have been removed from the roster.
*/
public void entriesDeleted(Collection addresses);
public void entriesDeleted(Collection<String> addresses);
/**
* Called when the presence of a roster entry is changed.