|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface modeling a ContactCollection.
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. |
Method Detail |
public boolean contains(java.lang.String UID)
UID
- the unique identifier of the contact as String.
public boolean contains(Contact contact)
contact
- the contact as Contact.
public boolean containsByName(java.lang.String name)
name
- the formatted name of the contact as String.
public Contact get(java.lang.String UID)
UID
- the unique identifier of a contact as String.
public Contact getByName(java.lang.String name)
name
- the formatted name of the contact as String.
public Contact[] toArray()
public Contact[] toArray(ContactFilter filter)
filter
- the filter as ContactFilter.
public void add(Contact contact)
contact
- the contact as Contact.public Contact remove(java.lang.String UID)
UID
- the unique identifier of a contact as String.
public void remove(Contact contact)
contact
- the contact as Contact.public java.util.Iterator iterator()
public java.util.Iterator iterator(ContactFilter filter)
filter
- the filter as ContactFilter.
public int size()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |