|
||||||||||
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.ContactGroupCollectionImpl
Class representing a serializable ContactGroupCollection. implementation.
Field Summary | |
protected java.util.Map |
m_Groups
|
protected int |
m_ModCount
|
protected java.util.Map |
m_NameIndex
|
Constructor Summary | |
ContactGroupCollectionImpl()
|
Method Summary | |
boolean |
add(ContactGroup group)
Adds a given contact group to this ContactGroupCollection. |
boolean |
contains(ContactGroup group)
Tests if this ContactGroupCollection contains a given contact group. |
boolean |
contains(java.lang.String UID)
Tests if this ContactGroupCollection contains a given contact group. |
boolean |
containsByName(java.lang.String name)
Tests if this ContactGroupCollection contains a contact group with the given name. |
ContactGroup |
get(java.lang.String UID)
Returns the ContactGroup instance for a given unique identifier. |
ContactGroup |
getByName(java.lang.String name)
Returns the ContactGroup instance with a given name. |
java.util.Iterator |
iterator()
Returns an iterator over all groups in this ContactGroupCollection. |
java.util.Iterator |
iterator(ContactGroupFilter filter)
Returns an iterator over all contact groups in this ContactGroupCollection, that pass the given filter. |
void |
remove(ContactGroup group)
Removes a given contact group from this ContactGroupCollection. |
ContactGroup |
remove(java.lang.String UID)
Removes a given contact group from this ContactGroupCollection. |
int |
size()
Returns the number of groups in this ContactGroupCollection. |
ContactGroup[] |
toArray()
Returns all contact groups in this ContactGroupCollection. |
ContactGroup[] |
toArray(ContactGroupFilter filter)
Returns all contact groups in this ContactGroupCollection, 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_Groups
protected java.util.Map m_NameIndex
protected transient int m_ModCount
Constructor Detail |
public ContactGroupCollectionImpl()
Method Detail |
public boolean contains(java.lang.String UID)
ContactGroupCollection
contains
in interface ContactGroupCollection
UID
- the unique identifier of the group as String.
public boolean contains(ContactGroup group)
ContactGroupCollection
contains
in interface ContactGroupCollection
group
- the group as ContactGroup.
public boolean containsByName(java.lang.String name)
ContactGroupCollection
containsByName
in interface ContactGroupCollection
name
- the unique name of the group as String.
public ContactGroup get(java.lang.String UID)
ContactGroupCollection
get
in interface ContactGroupCollection
UID
- the unique identifier of a group as String.
public ContactGroup getByName(java.lang.String name)
ContactGroupCollection
getByName
in interface ContactGroupCollection
name
- the name of the group as String.
public ContactGroup[] toArray()
ContactGroupCollection
toArray
in interface ContactGroupCollection
public ContactGroup[] toArray(ContactGroupFilter filter)
ContactGroupCollection
toArray
in interface ContactGroupCollection
filter
- the filter as ContactGroupFilter.
public boolean add(ContactGroup group)
ContactGroupCollection
add
in interface ContactGroupCollection
group
- the contact group as ContactGroup.
public ContactGroup remove(java.lang.String UID)
ContactGroupCollection
remove
in interface ContactGroupCollection
UID
- the unique identifier of a group as String.
public void remove(ContactGroup group)
ContactGroupCollection
remove
in interface ContactGroupCollection
group
- the contact group as ContactGroup.public java.util.Iterator iterator()
ContactGroupCollection
iterator
in interface ContactGroupCollection
public java.util.Iterator iterator(ContactGroupFilter filter)
ContactGroupCollection
iterator
in interface ContactGroupCollection
filter
- the filter as ContactGroupFilter.
public int size()
ContactGroupCollection
size
in interface ContactGroupCollection
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |