public final class ContactGroup extends java.lang.Object implements java.lang.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.
| Constructor and Description |
|---|
ContactGroup(java.lang.String name,
java.lang.String fullName,
ContactGroup parentGroup) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(ContactGroup o) |
boolean |
equals(java.lang.Object o) |
java.util.Collection<Contact> |
getContacts()
Gets the contacts in this group.
|
java.lang.String |
getFullName()
Gets the full name of the group.
|
java.util.Collection<ContactGroup> |
getGroups()
Gets the nested sub-groups of this group.
|
java.lang.String |
getName()
Gets the name of the group.
|
ContactGroup |
getParentGroup()
Gets the parent group.
|
int |
hashCode() |
java.lang.String |
toString() |
public ContactGroup(java.lang.String name,
java.lang.String fullName,
ContactGroup parentGroup)
public final java.lang.String getName()
Gets the name of the group.
public final java.lang.String getFullName()
Gets the full name of the group.
public final java.util.Collection<ContactGroup> getGroups()
Gets the nested sub-groups of this group. The returned collection is mutable and not thread-safe.
public final java.util.Collection<Contact> getContacts()
Gets the contacts in this group. The returned collection is mutable and not thread-safe.
public final ContactGroup getParentGroup()
Gets the parent group.
public final int compareTo(ContactGroup o)
compareTo in interface java.lang.Comparable<ContactGroup>public final boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic final int hashCode()
hashCode in class java.lang.Objectpublic final java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2014–2019 XMPP.rocks. All rights reserved.