1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-22 12:02:05 +01:00

Added method to get the count of roster items.

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@1956 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Matt Tucker 2003-06-16 03:33:37 +00:00 committed by mtucker
parent 1a65442954
commit 8053f0bb92

View file

@ -74,6 +74,17 @@ public class RosterPacket extends IQ {
}
}
/**
* Returns the number of roster items in this roster packet.
*
* @return the number of roster items.
*/
public int getRosterItemCount() {
synchronized (rosterItems) {
return rosterItems.size();
}
}
/**
* Returns an Iterator for the roster items in the packet.
*