|
Smack | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jivesoftware.smack.RosterEntry
public class RosterEntry
Each user in your roster is represented by a roster entry, which contains the user's JID and a name or nickname you assign.
Method Summary | |
---|---|
boolean |
equals(java.lang.Object object)
|
boolean |
equalsDeep(java.lang.Object obj)
Indicates whether some other object is "equal to" this by comparing all members. |
java.util.Collection<RosterGroup> |
getGroups()
Returns an unmodifiable collection of the roster groups that this entry belongs to. |
java.lang.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. |
java.lang.String |
getUser()
Returns the JID of the user associated with this entry. |
void |
setName(java.lang.String name)
Sets the name associated with this entry. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public java.lang.String getUser()
public java.lang.String getName()
public void setName(java.lang.String name)
name
- the name.public java.util.Collection<RosterGroup> getGroups()
public RosterPacket.ItemType getType()
getStatus()
to see if a subscription request
is pending.
public RosterPacket.ItemStatus getStatus()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
public boolean equalsDeep(java.lang.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.
|
Smack | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |