|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--net.rim.blackberry.api.bbm.platform.profile.BBMPlatformContactList
This class represents a collection of BBMPlatformContact objects
Methods of this class are not synchronized
| Constructor Summary | ||
BBMPlatformContactList()
Creates a new, empty BBMPlatformContactList instance |
||
| Method Summary | ||
void |
add(BBMPlatformContact con)
Adds a contact to this list and associates it with handle BBMPlatformContact.getHandle()
If contact already exists then it replaces it with this new value |
|
boolean |
contains(BBMPlatformContact contact)
Checks if contact already exists with the same handle as the given contact |
|
BBMPlatformContact |
get(String handle)
Retrieves the contact with the specified handle |
|
Enumeration |
getAll()
Returns all contacts. |
|
void |
remove(BBMPlatformContact con)
Removes contact associated with the handle of provided contact |
|
int |
size()
Returns the total number of contacts in this list. |
|
| Constructor Detail |
public BBMPlatformContactList()
| Method Detail |
public void add(BBMPlatformContact con)
BBMPlatformContact.getHandle()
If contact already exists then it replaces it with this new valuecon - – The contact to add to the listNullPointerException - If contact is nullpublic boolean contains(BBMPlatformContact contact)
contact - – Contact to look fortrue if the contact is in the list, Otherwise falsepublic BBMPlatformContact get(String handle)
handle - unique id of this Contactpublic void remove(BBMPlatformContact con)
con - – The contact to removeNullPointerException - if provided contact is nullpublic int size()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 1999- Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.