public class RosterEntry extends Object
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.
|
Collection<RosterGroup> |
getGroups()
Returns an unmodifiable collection 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() |
public String getUser()
public void setName(String name) throws SmackException.NotConnectedException
name
- the name.SmackException.NotConnectedException
public Collection<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.