public final class Occupant extends Object implements Comparable<Occupant>
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Occupant o)
Compares this occupant with another occupant.
|
Affiliation |
getAffiliation()
Gets the affiliation of the occupant.
|
Jid |
getJid()
Gets the JID of the occupant.
|
String |
getNick()
Gets the nickname.
|
Presence |
getPresence()
Gets the current presence of this occupant.
|
Role |
getRole()
Gets the role of the occupant.
|
boolean |
isSelf()
If the occupant is yourself.
|
String |
toString() |
public Affiliation getAffiliation()
public Role getRole()
public Jid getJid()
public String getNick()
public Presence getPresence()
public boolean isSelf()
public int compareTo(Occupant o)
Affiliations and roles are ranked by their privileges, so that occupants with the most privileges are ranked higher.
That means, in a sorted list of occupants, the owners are listed first, followed by the admins, followed by the mere members. Within each affiliation group, the moderators are listed first, followed by the participants and visitors. Each group is then sorted by its occupants' nicknames.
compareTo in interface Comparable<Occupant>o - The other occupant.Copyright © 2014–2015 XMPP.rocks. All rights reserved.