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
1 changed files with 11 additions and 0 deletions

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.
*