public final class RosterEntry extends Manager
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object) |
boolean |
equalsDeep(Object obj)
Indicates whether some other object is "equal to" this by comparing all members.
|
List<RosterGroup> |
getGroups()
Returns an copied list of the roster groups that this entry belongs to.
|
String |
getName()
Returns the name associated with this entry.
|
RosterPacket.ItemStatus |
getStatus()
Returns the roster subscription status of the entry.
|
RosterPacket.ItemType |
getType()
Returns the roster subscription type of the entry.
|
String |
getUser()
Returns the JID of the user associated with this entry.
|
int |
hashCode() |
void |
setName(String name)
Sets the name associated with this entry.
|
String |
toString() |
connection
public String getUser()
public void setName(String name) throws SmackException.NotConnectedException, SmackException.NoResponseException, XMPPException.XMPPErrorException
name
- the name.SmackException.NotConnectedException
XMPPException.XMPPErrorException
SmackException.NoResponseException
public List<RosterGroup> getGroups()
public RosterPacket.ItemType getType()
getStatus()
to see if a subscription request
is pending.public RosterPacket.ItemStatus getStatus()
public boolean equalsDeep(Object obj)
The equals(Object)
method returns true
if the user JIDs are equal.
obj
- the reference object with which to compare.true
if this object is the same as the obj argument; false
otherwise.