|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--net.wimpi.pim.contact.db.serializable.ContactCollectionImpl
Class representing a serializable ContactCollection. implementation.
| Nested Class Summary | |
protected class |
ContactCollectionImpl.ContactGroupImpl
|
| Field Summary | |
protected java.util.Map |
m_Contacts
|
protected int |
m_ModCount
|
protected java.util.Map |
m_NameIndex
|
| Constructor Summary | |
ContactCollectionImpl()
|
|
| Method Summary | |
void |
add(Contact contact)
Adds a given contact to this ContactCollection. |
boolean |
contains(Contact contact)
Tests if this ContactCollection contains a given contact. |
boolean |
contains(java.lang.String UID)
Tests if this ContactCollection contains a given contact. |
boolean |
containsByName(java.lang.String name)
Tests if this ContactCollection contains a contact with the given name. |
Contact |
get(java.lang.String UID)
Returns the Contact instance for a given unique identifier. |
Contact |
getByName(java.lang.String name)
Returns the Contact instance with a given name. |
java.util.Iterator |
iterator()
Returns an iterator over all contacts in this ContactCollection. |
java.util.Iterator |
iterator(ContactFilter filter)
Returns an iterator over all contacts in this ContactCollection, that pass the given filter. |
void |
remove(Contact contact)
Removes a given contact from this ContactCollection. |
Contact |
remove(java.lang.String UID)
Removes a given contact from this ContactCollection. |
int |
size()
Returns the number of contacts in this ContactCollection. |
Contact[] |
toArray()
Returns all contacts in this ContactCollection. |
Contact[] |
toArray(ContactFilter filter)
Returns all contacts in this ContactCollection, that pass the given filter. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.util.Map m_Contacts
protected java.util.Map m_NameIndex
protected transient int m_ModCount
| Constructor Detail |
public ContactCollectionImpl()
| Method Detail |
public boolean contains(java.lang.String UID)
ContactCollection
contains in interface ContactCollectionUID - the unique identifier of the contact as String.
public boolean contains(Contact contact)
ContactCollection
contains in interface ContactCollectioncontact - the contact as Contact.
public boolean containsByName(java.lang.String name)
ContactCollection
containsByName in interface ContactCollectionname - the formatted name of the contact as String.
public Contact get(java.lang.String UID)
ContactCollection
get in interface ContactCollectionUID - the unique identifier of a contact as String.
public Contact getByName(java.lang.String name)
ContactCollection
getByName in interface ContactCollectionname - the formatted name of the contact as String.
public Contact[] toArray()
ContactCollection
toArray in interface ContactCollectionpublic Contact[] toArray(ContactFilter filter)
ContactCollection
toArray in interface ContactCollectionfilter - the filter as ContactFilter.
public void add(Contact contact)
ContactCollection
add in interface ContactCollectioncontact - the contact as Contact.public Contact remove(java.lang.String UID)
ContactCollection
remove in interface ContactCollectionUID - the unique identifier of a contact as String.
public void remove(Contact contact)
ContactCollection
remove in interface ContactCollectioncontact - the contact as Contact.public java.util.Iterator iterator()
ContactCollection
iterator in interface ContactCollectionpublic java.util.Iterator iterator(ContactFilter filter)
ContactCollection
iterator in interface ContactCollectionfilter - the filter as ContactFilter.
public int size()
ContactCollection
size in interface ContactCollection
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||