Class ContactGroup

  • All Implemented Interfaces:
    Comparable<ContactGroup>

    public final class ContactGroup
    extends Object
    implements Comparable<ContactGroup>
    Represents a contact group in the user's roster. A group consists of contacts and may contain nested sub-groups.

    This class is conditionally thread-safe.

    • Method Detail

      • getName

        public final String getName()
        Gets the name of the group.
        Returns:
        The name.
      • getFullName

        public final String getFullName()
        Gets the full name of the group.
        Returns:
        The full name.
      • getGroups

        public final Collection<ContactGroup> getGroups()
        Gets the nested sub-groups of this group. The returned collection is mutable and not thread-safe.
        Returns:
        The nested groups.
      • getContacts

        public final Collection<Contact> getContacts()
        Gets the contacts in this group. The returned collection is mutable and not thread-safe.
        Returns:
        The contacts.
      • getParentGroup

        public final ContactGroup getParentGroup()
        Gets the parent group.
        Returns:
        The parent group or null, if it has no parent.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object