public class Mention
extends java.lang.Object
| Constructor and Description |
|---|
Mention(java.lang.String text,
User user)
Constructs a text mention.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getText()
Returns the text of the mention.
|
User |
getUser()
Returns the mentioned user.
|
int |
hashCode() |
public Mention(java.lang.String text,
User user)
text - the text of the mentionuser - the mentioned userpublic java.lang.String getText()
public User getUser()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object