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:
parent
1a65442954
commit
8053f0bb92
1 changed files with 11 additions and 0 deletions
|
@ -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.
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue